Tag Info

Hot answers tagged

14

I would suggest installing the WKHtmlToPDF tool from http://code.google.com/p/wkhtmltopdf/. You can then change to the root folder and use find and xargs to convert them: cd /main-folder find . -name \*.html | sed 's/.html$//g' | xargs -n 1 --replace=X wkhtmltopdf X.html X.pdf This will then build a PDF with each HTML file.


11

Regarding Drop-Down-On-Hover menus, buttons, Change-Color-On-Hover buttons, images and text in multiple columns, You may find Web Developer Tools very helpful. You may download the .deb file here -> WDT You can find many menus source code from many websites inside WDT You may generate css Menus Image processing tools HTML editor Please ...


9

Yes, you can by adding a new protocol handler in your Ubuntu. The following method will show you how to register the process of opening an application as app://[application_name] protocol handler in Ubuntu. 1. Create application launcher script In a terminal run: mkdir -p bin This command will make a bin directory in your home folder if you don't ...


9

Calibre is a pretty powerful tool for converting things into ebooks in various formats. Available in a Software Centre near you! Don't be deceived by its less than beautiful UI, it can do a lot.


8

sed, the stream editor, is your friend here. For example. sed -i.bak -e's/<p id="first"/<p id="second"/' file.html would change all the paragraphs with the id 'first' to id 'second' in file.html, and create file.html.bak into the bargain.


8

I prefer to use --page-requisites (-p for short) instead of -r here as it downloads everything the page needs to display but no other pages, and I don't have to think about what kind of files I want. Actually I'm usually using something like wget -E -H -k -p http://textbook.s-anand.net/ncert/class-xii/chemistry/hello-this-first-chapter This means: -E: ...


8

zenity and the entry option does not support the "pango" markup options. error, info, question, warning are the only options that support these markups. If you examine the man page for zenity - those options can have the pango markups turned on or off. FYI this link gives you the markups supported: ...


7

Make sure you have the full vim installed: sudo apt-get install vim Then make a file named ~/.vimrc with the following contents: filetype plugin indent on Then it should work. UPDATE (source of the update) In the 7.4 version the indentation file was changed, that is what causing problems. The new indentation doesn't indent every html tag, but you can ...


6

Yes, there is, it's http://man.cx/. It aims to have all man pages in one site, also in multiple languages. The anchors are unfortunately not named, but numbered: for example http://man.cx/printf#heading1 will take you to the first heading of the printf man page. Still I think it's better than without anchors ;) PS. Add the site to your search engines, then ...


6

One alternative is http://johnmacfarlane.net/pandoc/ which is in the repos, sudo apt-get install pandoc Then you can take your markdown file and convert it to rtf, or a variety of other formats with, pandoc -s -f markdown -t rtf -o file.rtf file.txt The -s switch is for standalone, so that it doesn't just create an rtf fragment. There are also a ...


6

You could use w3m which should already installed - if however it isn't sudo apt-get install w3m An example command syntax: w3m -dump askubuntu.com | less It can be used with both URL's as well as file-based html files w3m -dump index.html | less


6

There are these so-called text html browsers, of which I have successfully tested Lynks and eLinks. Of which elinks has became my favorite. Anyway, they are different than a "web page previewers" as you suggest in your question. They are more like active real time browsers, which carries on lots of useful features for an easy web browsing and of course, you ...


6

pdftohtml is probably what you're looking for. Info about the package: packages.ubuntu.com/lucid/pdftohtml


5

Use the Vala GIO File open shown here http://live.gnome.org/Vala/GIOSamples var web_page = File.new_for_uri ("http://live.gnome.org/Vala"); This is the standard method of grabbing files and web pages and you can use the uri syntax for a number of supported protocols such as ssh, ftp, etc.


5

Because Firefox 3.6 doesn’t support all the html5 specifications, no browser today does. Look at http://html5readiness.com/ which browser supports what features. No it doesn’t matter a whole lot, html5 is still in the development stages.


5

WordPress is a neat CMS for running a website. I'll give you instructions on how to install it. You can install LAMP (Stack of Apache, PHP and MySQl) by running this terminal command on the server: sudo tasksel install lamp-server Then, after that you can install WordPress by running this command: sudo apt-get install wordpress Then you can fire up ...


5

You can use html2text to look into an HTML document from command line. sudo apt-get install html2text html2text Webpage.html | less but not exactly a look similar to man pages, it depends on the html input, of course.


5

I do not believe you can stop the rendering itself. The 3 things I know of that you can use are... View -> Messages as plain text; Not use preview (f8 toggles on/off) You can also enable tools->options->advanced->privacy->block loading of remote images to stop loading remote images (that also kills the ability to execute code from there).


5

HTML is a markup language which is interpreted by a web browser. There is no such thing as compiling HTML. JavaScript is a dynamic programming language that is executed at runtime by a JavaScript engine. That means JavaScript is not compiled. As you're mentioning both JavaScript and HTML, read this : JavaScript use in web pages. The primary use of ...


5

Yes, it is called "Web-based protocol handlers". You need Chrome 13 or Firefox 3.0 or higher. I have seen it used to open LibreOffice. Both Mozilla and updates.html5rocks have an explanation about how this works. (Open in Chrome/Chromium chrome://settings/handlers and it will show a list of current handlers. Firefox will list them in about:config.) Parts ...


5

If $BROWSER is empty [ -n $BROWSER ] becomes just [ -n ]. That tests if -n has non-zero length, which is always true. Then $BROWSER '/tmp/flash-viewer.htm' is executed which actually is just '/tmp/flash-viewer.htm' if $BROWSER is empty. Use if [ -n "$BROWSER" ]; then so that there's always a second argument. To find out the exact path of your ...


4

First Method: Launch an SSH tunnel To initiate your SSH tunnel, simply open terminal and connect to your remote server via SSH with the following flags: ssh -D 8080 -C -N username@example.com Browse the Web with Your SSH Tunnel (Chrome) Now, let’s start browsing the web using our new SSH tunnel. Open Google Chrome Select the wrench icon on the top ...


4

Install the dependencies: sudo apt-get install libatk1.0-0 libc6 libcairo2 libfontconfig1 libfreetype6 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libidl0 libnspr4 libnss3 libpango1.0-0 libpng12-0 libstdc++6 libx11-6 libxft2 libxinerama1 libxrender1 libxt6 zlib1g 32 bit systems: Download the packages wget -c ...


4

The following command should do the job for one link: gnome-web-print http://www.ubuntu.com ubuntu.pdf For multiple links, it shouldn't be difficult to write a loop that handles each link one by one.


4

These files are part of the debian-cd package, which is used to build the Ubuntu live CDs. The images are sourced by an include file named README.html.in, which the add-bin-doc tool incorporates into README.html at the root of the CD's filesystem. This file is either never generated or is deleted from Ubuntu's CDs, so I believe the images are unused.


4

One solution is to use lynx -dump, as in lynx -dump file.html or echo "<div>this is a div</div>" | lynx -dump -stdin Better: Use w3m -dump, it respects the page layout. It is awesome. sudo aptitude install w3m w3m -dump file.html echo "<div>x</div>" | w3m -dump -T text/html You can set the number of columns of the terminal ...


4

The easiest way? File > Print from your browser. Select Print to File as your printer, and it will ask you where you want it. Be sure to mark PDF. Hit "Print" and it will actually be saved to your drive instead of actually printing.


4

Maybe mozilla prism could help with some of what you want: http://prism.mozillalabs.com/, you can install prism from the repository by typing in your terminal; sudo apt-get install prism, then launch prism and enter the url to your web application, a shortcut to the web app can be created on your desktop, you must right click on the web app shortcut on ...


4

Htmldoc can be useful, see it here; http://www.htmldoc.org/ it is available from software center, sadly the 1.8 version has a problem with unicode encoded files but on many occasions it can still be a saviour, the problem is fixed in the 1.9 development version. I usually use the wonderful scrapbook extension here; http://amb.vis.ne.jp/mozilla/scrapbook/ ...


3

I would recommend using OpenOffice/LibreOffice to create the PDF. As a test I downloaded the Wget manul (all in one page) and then opened the HTML page in OponOffice and clicked on the "Export Directly to PDF" button. It created the PDF with with an index from the table of contents. In the past I've found this to be the easiest way to convert HTML pages to ...



Only top voted, non community-wiki answers of a minimum length are eligible