If you let the app translate the following line into another language
00:00:04.580 --> 00:00:06.660
then they often spoil it, for example there will be
00:00: 04.580 ->00:00:06.660
So I have to change it to the format
seconds ## seconds
After the translation is done, change it back to hhmmss --> hhmmss
After the file srt (or vtt) is extracted from youtube video
(using downsub.com for example)
let open this html code and parse it inside textarea with id="area1"
Tap the finame of this html to run it. Tap "OK" to change to seconds ## seconds format
Tap this button "COPY" then open Google translator app.
Translate the text to another language.
Proxy script (or proxy program) is a script, wich is located between the user's browser and the "target server". Here I'would like to make a simple demo for PHP-Jquery-script proxy method. So far in my blog I just use YouTube API v.3 and JavaScript-jQuery to find videos. This time I try to use PHP language and jQuery to find videos. We often hear about "Web scraping with PHP," which can be roughly considered to include 9/10 PHP and 1/10 jQuery. Now I want to do it again but with 1/10 PHP and 9/10 jQuery. This page ("php-jquery-proxy.html") is for web scraping using mainly jquery-ajax in combination with only one function from PHP language (get_file_contents function). Using it I can get video ids, video titles from the source code of youtube pages and watch those videos continuously. To use this page you don't need to have Youtube API-3 key but need to download from Internet the XAMPP package...
Note: Please wait a bit for the math formulas to appear.(I use MathJax.js) 1- Problem 1: A spring-mass system on horizontal surface performs damped oscillation due to Coulomb frictional force \[F_{cl}=\mu mg\]. When t = 0 the mass was pulled so that the spring stretches a segment of $x_0=6$ (cm) then it was loosed. It's known that: \[\omega = \sqrt{\frac{k}{m}}= \frac{\pi}{4} = 0.7854 \quad\text{(rad/s)}\] and the length of the way for one direction movement (from left to right or from right to left) decreasing steadily to 0.8 (cm). a- Establish the equation of motion x = x(t) b- Using LaTeX to draw this oscillating graph. 2- Solution: A. Two half periods at the beginning We will use the horizontal x axis in the direction of elongation of the spring. x = 0 is the position of the mass when it is not pulled or compressed. The condition for the mass to stop is: \[\text{velocity }v=0\quad\text{and}\quad\ |x| \le d\quad\text{where }d = \f...
After reading this post please continue reading the following one: http://phanhung20.blogspot.com/2021/03/copy-source-code-for-ytvideo-playhtml.html To see how this file works please go to this post: http://phanhung20.blogspot.com/2021/02/javascript-searching-for-youtube-videos.html Tap button COPY. Use your ipad: open Koder code editor app and create new file ytvideo-search.html. Tap this file name to open it and paste the code to it. Find the line: mykey = 'PASTE-YOUR-API-KEY-HERE' and paste your key there. COPY Please complete following steps: Obtain Youtube API key for yourself. Install Koder code editor app to your ipad. Create two files ytvideo-search.html (5 KB, without help text) ytvideo-play.html (25 KB) To do that, open my blog phanhung20.blogspot.com and copy source code for those files. Open Koder app, tap the button + in the left bottom ...