Perhaps I'm missing something simple here, but is there any place to download the GWT documentation for use offline?
If you download the SDK here you will have it in
yourGWTFolder\doc\javadoc\index.html
Where 'yourGWTFolder' is the folder you unzipped the file you downloaded to.
You can try someting like:
wget --no-check-certificate -k -r -np -p https://developers.google.com/web-toolkit/doc/latest/
I do not know if wget is available on Windows. If not you can use cygwin or a linux VM.
Related
I'm trying to download a directory and all its subdirectories from a website, using wget.
Reading all other SO questions I arrived at this:
wget -nH --recursive --no-parent --cut-dirs=5 --reject "index.html*" --directory-prefix="c:\temp" http://blahblah.com/directory/
However, no mather how I try to formulate the c:\temp, wget always creates "#5Ctemp" in the current directory and does the download in that directory. I check the documentation but to no avail.
Preferably I would also be able to use an environment variable as --directory-prefix, eg
--directory-prefix=%PREFIX%
Looks like the version of wget you're using (1.8.2) is either buggy or too old. It definitely works with newer versions, get one here:
wget 1.11.4 from gnuwin32
wget 1.14 from osspack32
wget 1.15 from eternallybored.org
For completeness, here's a link to the wget wiki download section.
I am trying to use wget to download a file under a different local name and only download if the file on the server is newer.
What I thought I could do was use the -O option of wget so as to be able to choose the name of the downloaded file, as in:
wget http://example.com/weird-name -O local-name
and combine that with the -N option that doesn't download anything except if the timestamp is newer on the server. For reasons explained in the comments below, wget refuses to combine both flags:
WARNING: timestamping does nothing in combination with -O. See the manual
for details.
Any ideas on succinct work-arounds ?
Download it, then create a link
wget -N example.com/weird-name
ln weird-name local-name
After that you can run wget -N and it will work as expected:
Only download if newer
If a new file is downloaded it will be accessible from either name, without
costing you extra drive space
If using other tool is possible in your case, I recommend the free, open source lwp-mirror:
lwp-mirror [-options] <url> <file>
It works just as you wish, with no workarounds.
This command is provided by the libwww-perl package on Ubuntu and Debian among other places.
Note that lwp-mirror doesn't support all of wget's other features. For example, it doesn't allow you to set a User Agent for the request like wget does.
Can any one suggest a command to download the package from the interent in the solaris box?
Thanks in advance.
See https://stackoverflow.com/a/14584664/141978 from RaamEE:
The wget command in Solaris 10 is somewhat hidden from sight.
You can find it here
/usr/sfw/bin/wget
This was checked on s10u10
Then use /usr/sfw/bin/wget <url>
It's hard to tell as you provide few information but wget is a common tool to retrieve things from the Internet.
wget http://server/package.zip
If a Solaris package, pkgadd also supports URLs:
pkgadd -d http://server/package.pkg
I once needed to get wget installed on old remote Solaris 8 server (there is no /usr/sfw/ on Solaris 8).
So, after some web surfing, I did the following:
Downloaded wget-1.10.2-sol8-sparc-local.gz from http://download.nust.na/pub3/solaris/sparc/5.8/ to my Windows machine (where I always have 7-Zip installed)
Extracted wget-1.10.2-sol8-sparc-local.gz
Uploaded resulting package wget-1.10.2-sol8-sparc-local into Solaris server
Under root user executed pkgadd -d wget-1.10.2-sol8-sparc-local
Right away you can start using it as wget <URL>.
I am using this command
sudo port install ffmpeg +gpl +postproc +lame +theora +libogg +vorbis +xvid +x264 +a52 +faac +faad +dts +nonfree
But the installed version of ffmpeg I get is only 0.7.13.
I am using MacPorts which may be the issue
Apparently there is a 1.0 release!
http://ffmpeg.org/download.html#release_1.0
1. Homebrew
Homebrew has a formula for stable FFmpeg releases. This will get you running pretty fast. First, install Homebrew by opening Terminal.app and and pasting this. Follow all the instructions closely!
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then install FFmpeg through the ffmpeg formula:
brew install ffmpeg
This will download a lot of dependencies such as x264, LAME, FAAC, et cetera, but after that you should be good to go. You can also brew install ffmpeg --HEAD to get the absolute latest version.
For additional options, check the output of brew info ffmpeg. You can, for example, add the following options, which are normally disabled:
brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
To update ffmpeg later on, run:
brew update && brew upgrade ffmpeg
2. Static Builds
The FFmpeg project, on the download page, offers links to static builds for ffmpeg, which you can just download, extract, and use in a terminal.
At the moment, you can get them from here:
http://evermeet.cx/ffmpeg/
http://ffmpegmac.net/
Static builds cannot contain every possible encoder, mostly due to licensing issues. This is why I don't recommend using them unless you don't really care about which specific features you need.
Once downloaded, extract the file, open up Terminal.app, and navigate to the directory where you unzipped the files, i.e. where you find a file called ffmpeg. Copy this file to /usr/local/bin:
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod 644 /usr/local/bin/ffmpeg
sudo chown $USER /usr/local/bin/ffmpeg
Now, if you use Bash (which is the default shell), add it to your $PATH:
open -e ~/.bash_profile
Add this to the file at the end:
export PATH="/usr/local/bin:$PATH"
Save it, and close the editor. Now restart your Terminal and which ffmpeg should return /usr/local/bin/ffmpeg.
It's a "problem" with MacPorts. As you say, the last port version is 0.7.13. There is also a devel port but with a recent revision (5 weeks ago). You could also take a look here. This site seems to have a 1.0 static binary. It is a trusted website. Actually is linked in the official ffmpeg website.
I've gone to this link http://ftp.gnu.org/gnu/wget/
and downloaded different versions, but I have no idea how to actually unpack it.
You don't need to download it. Take a look at their source code repository and read everything using your browser. Here's main.c for example. More details available at How to Access the Wget Source Code Repository.
tar.gz is a common extension for files that have been "tarred" ("tape archive", using the "tar" program), and "gzipped".
Most Linux systems come with these pre-installed, so you can extract the files using something like this:
tar xf wget-1.13.tar.gz
In Windows, use some unzipper program such as 7-Zip, WinZip, or WinAce or use tar from mingw/cygwin.