Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I want to download all the html, css and js files of the entire website in one click. I tried right-click and view source code but then I have to copy paste each page and create folder myself so its very tedious. Is there any open source software that helps do that or do i have to code it myself?
wget is your friend here and it works on windows, mac and linux.
wget -r -np -k http://yourtarget.com/even/path/down/if/you/need/it/
-r is recursive
-np (do not follow links to parent directories)
-k to make links in downloaded HTML or CSS point to local files
Other useful options:
-nd (no directories): download all files to the current directory
-e robots.off: ignore robots.txt files, do not download robots.txt files
-A png,jpg: accept only files with the extensions png or jpg
-m (mirror): -r --timestamping --level inf --no-remove-listing
Right Click > Save Page As
Will download all css and js/html.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I try to run ng serve command in my project it produce the below error.
ERROR in ngcc is already running at process with id xxxx
Try deleting your ngcc_lock_file in the path:
node_modules/#angular/compiler-cli/ngcc/ngcc_lock_file
Or for Angular 9, the lock file to delete is:
node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
I had the same issue and I and deleted that file and it started working for me.
rm node_modules/#angular/compiler-cli/ngcc/__ngcc_lock_file__
Working Solution
Delete all node modules
Close any working terminal or you can shut down your PC if you cant make sure that you've closed all working terminals
run npm i to setup your modules
run ng s
It's working with me well !
The problem is most-likely a unique case.
Make sure you don't run other ng serve in parallel.
Stop current processes running and retry.
Reload your computer and try again.
If that does not help
Post a full log, so it is possible to troubleshoot your problem.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
so I have this website so far
https://imgur.com/a/o4T81MG
Looks like that. I want the play thumbnails to display video I have on my computer. I want to use my computer as a video host. I am trying to play around making a video sharing site. I plan on going down the google cloud route to host my videos but as of right now I wanted to know if its possible to use my own computer as a server to retrieve videos I have saved.
Here's one option...
Step 1: Serving the video
Super Simple Node.js Server
(install Node.js)
At a command-prompt:
Run npm install --global http-server.
Change into (cd) the directory where your videos are stored.
Run http-server.
Apache + GNU/Linux
Run a Linux VM on your computer (or use WSL if you're on Windows, or if you must install it directly follow these instructions: https://www.sitepoint.com/how-to-install-apache-on-windows/).
Install Apache (sudo apt-get install apache2 on Ubuntu; see https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-16-04).
Put your video in a directory such as /var/www/html or the equivalent for your platform (revisit the first two links for help).
Configure your new server to serve video correctly (https://stackoverflow.com/a/13341700).
Step 2: On the frontend...
Embed a element on your webpage pointing to the video on the server (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video).
🎉 You're all set up!
TL;DR: you need to serve the videos and then display them. If you want to add logic beyond that, consider building an Express web app.
You need to store your video files in a folder on a server, and then you need to reference them in your code. It's very simple to reference the videos when they are in a folder on a server.
see:
https://www.w3schools.com/html/html5_video.asp
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
When I tried to source for a particular .sql file, namely 'registrar.sql', the following error is displayed:
Failed to open file 'registrar.sql', error: 2
I know that this means the below error:
#define ENOENT 2 /* No such file or directory */
However, I am not sure how to be more specific as I have tried entering 'source registrar.sql' and I have tried entering the absolute path. Now it is possible I am just entering the absolute path incorrect which is where I could use some help. Here is the path in properties in windows.
C:\Program Files\MySQL\MySQL Server 5.1\bin
File name is: registrar.sql
Any help on this would be appreciated.
Try like this:
mysql> source c:/dumps/mydatabase.sql
That is, use forward slash instead of back slash
You need to restart mysql if you have copied file after starting mysql server.
also if you have space in file or folder name you should use quotes.
I think that the sql process might not have read access to your directory anyway. In which case, you might have to copy the sql file to other accessible folder and tell mysql the absolute path.
Remove spaces in the folder names of the path, It worked for my mac path.
(Eg: change the folder name MySQL Server 5.1 to MySQLServer5.1)
I would like to give my audience handouts of my HTML5 presentation created by slidify or Rstudio's R presentations. Any suggestions?
1) Install the software pandoc:
http://johnmacfarlane.net/pandoc/installing.html
2) Install the stoftware MikTex (Windows):
http://miktex.org/download
3) Install the R package knitr
install.packages("knitr")
4) The following only worked after I restarted my PC (Windows)
# Load packages
library("knitr")
# Check if pandoc is found on your system
system("pandoc -v")
# Set working directory, e.g.:
# setwd("C:/r_files")
# Convert mark-up file
pandoc('p4.Rpres', format='latex') # PDF
pandoc('p4.Rpres', format='docx') # DOCX
During the execution of the latter command multiple pop-ups were shown saying that MikTex needs to install specfic add-ons to process the command. You have to confirm this to proceed.
For more details see: http://yihui.name/knitr/demo/pandoc/
why don't you use (Awesome Screenshot) is a browser plugin (fire fox, chrome) which takes an images of the browser and creates a .jpg or.png file of the image, also if you really want to make it into a .pdf import the image into photoshop and safe it as a.pdf
hope I answer your question?
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Would anyone know where I could find the my.cnf file(s) on Vista? I am using XAMPP (C:/xampp) and I tried searching within that directory, but I can't seem to find it.
my.cnf or my.ini is probably in C:\xampp\mysql\
If not there, you can try the following, which I found here:
To find these MySQL config files, do this:
Go to Folder Options: in any folder, go to the top horizontal main text menu >> Tools >> Folder Options
Enable 'View Hidden Files and Folders', and 'View Protected System Files', save & exit
Go to C Drive, locate and rename the my.ini file, which will now be visible. Rename it as my.ini.bak
Go to /xampp/msql/bin - locate and rename my.cnf, to my.cnf.bak
If there is no file my.cnf, but there is one called my - then that is the one you want. Rename it to my.cnf.bak