Hot answers tagged

15

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: ...


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 ...


11

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

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 ...


9

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: ...


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

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

My personal favorite for web programming would have to be Brackets. It has support and syntax highlighting for many, many languages, and has plenty of awesome features. It has an awesome interface that's really easy to use, along with a whole raft of features, like over 100 extensions accessible right from within a built-in Extension Manager, ...


6

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 ...


6

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.


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

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

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

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 ...


5

Good news! So if you have apache2 already installed, you install W3C Validator and Perl: sudo apt-get install w3c-markup-validator libapache2-mod-perl2 The issue is that the w3c-markup-validator package hasn't been updated to install properly on 13.10+ (I'm on 14.04). To fix it manually: sudo ln -s /etc/w3c/httpd.conf ...


5

grep doesn't replace or modify files. Use sed: sed -i 's|</head>|link to JS script</head>|' *.html How it works -i tells sed to modify files in place. The most important sed command is substitute. It has the form s|old|new| where old is a regular expression. Here, we replace </head> with link to JS script</head>. *.html tells ...


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 ...


4

There is an easier method: create a "template" in ~./Templates and cp that to make a copy where you need it.


4

Go to "Tools"->"preferences"->"External Commands"/ First make sure firefox is listed. You can then try changing it's command to firefox "%s" or if that doesn't work change it to firefox "%p" Apply and try previewing the file via the browser. source: http://ubuntuforums.org/showthread.php?t=1584013


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

Bluefish is great - it supports HTML, CSS, JS and much more besides. Also supports tag completion , multi-threading & documenting etc. You can install it from the repos using: sudo apt-get install bluefish Screenshot: Note you can install Notepad++ under Wine, and a script for PlayOnLinux is also available


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 ...



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