The download page of Hadoop http://hadoop.apache.org/releases.html only contains several recent release packages. I would like to download some old release packages such as Hadoop 2.5.0 which is not available anymore on the release page. Where to download a copy of the old release? You can download the old release packages of Hadoop on the http://archive.apache.org
Read more
Tag: Web
How to generate a CSR from a private SSL key?
Posted onI am renewing my SSL key for my websites. The CA requests a CSR. I have my private key. How to generate a CSR (Certificate Signing Request) from a private SSL key? You can generate a CSR from your private key with openssl: openssl req -new -key ssl.key -out req.pem Here, ssl.key is your private
Read more
How to debug media print view of Web page in Firefox?
Posted onHow to debug the media print view set by @media print {} in CSS of Web pages in Firefox? In firefox, after opening the Web page, First, hit “Shift + F2” to open the “Developer Toolbar” at the bottom. Second, in the “Developer Toobar”, input media emulate print and Firefox will show the print view
Read more
Firefox: how to sync bookmarks saved on iOS devices to Firefox on PC?
Posted onFirefox on iOS can view bookmarks from PC. But how to sync the bookmarks made on iOS to PC? It seems the bookmarks made in Firefox on iPhone is local only. No, you can’t yet. Bookmarks saved on your iOS devices will not sync to your PC at current (by Nov. 25, 2015) version of
Read more
Where to search and download free images?
Posted onWhere to search and download some free and nice images to be used on my websites? The best one for searching the free images is still Google. Google Image Search has a “Advanced Image Search” where you can choose the usage rights. Choose the “free to use, share, or modify, even commercially” option will lead
Read more
How to pass results from the opened window to the openning window in JavaScript?
Posted onFrom the opening window by JavaScript window.open(), we can pass info to the opened by hash. But how to pass results back from the opened window to the openning window in JavaScript? Assume in the opener window, a JavaScript variable is defined like var exchangeVar = ”; In the opened window, you can update the
Read more
How to capture the close event of an opened window by window.open() in JavaScript?
Posted onHow to capture the close event of an opened window by window.open() in JavaScript? This JavaScript code works well for me: var newwindow = window.open(“/newwindow.html”); newwindow.onbeforeunload = function () { // processing event here alert(“new window closed”); } Note that after the callback function is executed, the newwindow is closed.
How to send POST request in JavaScript?
Posted onHow to send POST request in JavaScript from the users’ browsers? One easy method I find is to use the jQuery library’s post() method. Here is one example that send POST request with data “file: filename” to the “/fileview” URL on the server and show the replied data: $.post(“/fileview”, {file: filename}, function (data) { //
Read more
How to open a URL in a new window in JavaScript?
Posted onHow to open a URL in a new window in JavaScript? For example, to open a new window to browse “http://www.systutorials.com“. Open the URL in a new window: url = “http://www.systutorials.com”; window.open(url); Some browser will open the window in a new tab depending on the configuration. If you want to force the browser to open
Read more
How to advertise different gateway ip via DHCP in OpenWRT?
Posted onHow to advertise a different router/gateway ip via DHCP in OpenWRT? In general, you need to configure the DHCP option with code 3 (router). (A list of all options can be found in http://www.networksorcery.com/enp/protocol/bootp/options.htm ) For example, to advise the gateway IP 192.168.1.2, you will send this option: “3,192.168.1.2” Now, for OpenWRT, you have 2
Read more
Good free images hosting services on the Web?
Posted onSuggestions on some good free images hosting services on the Web? Two good free image hosting websites: Imgur: http://imgur.com/ Postimage.org: http://postimage.org/
How to host multiple websites on a Apache Linux web server?
Posted onI have a Linux web server with Apache (httpd). How to host multiple websites on Apache? To host websites www.example1.com and www.example2.com on a single node with Apache2 on a single IP, you can use VirtualHost as follows. Edit /etc/httpd/conf/httpd.conf and add the following lines: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/example1.com ServerName www.example1.com # Other
Read more
How to allow websites’ .htaccess files in Apache2?
Posted onHow to allow websites to use .htaccess files in Apache2 web servers? The AllowOverride directive controls this: http://httpd.apache.org/docs/current/mod/core.html#allowoverride To allow AllowOverride in a directory, add the following rules to the /etc/httpd/conf/httpd.conf or similar configuration file for your apache installation: <Directory “/var/www/www.example.com”> Options FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files.
Read more
Block Ads in WordPress, while mobile view
Posted onHi there, Quite recently I’ve created a native app (webview app)of my wordpress website and this wordpress site is using responsive theme as well. Now I want to publish this app at play store. The problem is that Adsense are not allowed to be shown in a native android app. So I want to know
Read more
Windows 7 repetitively tried to update but failed every time I boot Windows 7
Posted onWindows 7 repetitively tried to update but failed every time I boot Windows 7. It will reboot automatically several times itself. How should I fix it? First, you need to identify which update causes the problem. You can find this in the Updates control panel tool as follows. After identifying the failed package (e.g. KB3033929
Read more
How to put AdSense ads in BuySellAds without iframe?
Posted onHi, I noticed that your site serves AdSense ads through BuySellAds and it is not in an iframe. By default, BuySellAds puts the backfill ads in an iframe. Puting AdSense ads in iframe is violation of the terms. How do you make BuySellAds not put AdSense ads in an iframe? Thanks! To inline the ads
Read more
How to make curl request pass the Squid proxy?
Posted onI use curl to send requests to remote servers like following command. curl http://example.com/send –date-urlencode “data=hello” However, it is blocked by the network proxy squid in some networks with message like (some info anonymized with “…”): ERROR The requested URL could not be retrieved POST /… HTTP/1.1 Proxy-Authorization: Basic … User-Agent: Mozilla/4.0 (compatible;) Host: …
Read more
Max number of Emails allowed to Sent from Gmail SMTP per day
Posted onGmail’s SMTP is convenient. You “sender” needs not to be always your Gmail address (but the emails will include your Gmail address in the header “send by”). I am wondering how many emails at maximum can I send each day through Gmail’s SMTP. Here there a nice recent list of the sending limits of the
Read more
How to make WordPress regenerate the thumbnails after I changing the media aspects?
Posted onI recently changes the media aspects. The problem is that the existing thumbnails are not changed to the new aspects. How to make WordPress regenerate the thumbnails after I changing the media aspects? The “Regenerate Thumbnails” works like a charm for me: https://wordpress.org/plugins/regenerate-thumbnails/ . It allows you to regenerate your thumbnails after changing the thumbnail
Read more
How to redirect WordPress search query to Google CSE?
Posted onHow to redirect WordPress search query to Google CSE? You can configure Google CSE to read the query variable (by default, it is q). Then, in your WordPress’s .htaccess file, add these 2 lines RewriteCond %{QUERY_STRING} ^s=(.*)$ RewriteRule ^ https://www.google.com/cse/publicurl?cx=xyz&q=%1 [R,L] Here, “https://www.google.com/cse/publicurl?cx=xyz” is your CSE’s public URL or the webpage that contains the Google
Read more