Where to download an old release package of Hadoop?

Posted on

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

How to debug media print view of Web page in Firefox?

Posted on

How 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 on

Firefox 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

How to pass results from the opened window to the openning window in JavaScript?

Posted on

From 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 on

How 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 open a URL in a new window in JavaScript?

Posted on

How 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 on

How 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

How to host multiple websites on a Apache Linux web server?

Posted on

I 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 on

How 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

Windows 7 repetitively tried to update but failed every time I boot Windows 7

Posted on

Windows 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 make curl request pass the Squid proxy?

Posted on

I 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

How to make WordPress regenerate the thumbnails after I changing the media aspects?

Posted on

I 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 on

How 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