A very useful table from w3schools
||Data will be re-submitted (the browser should alert the user that the data are about to be re-submitted)
||Can be bookmarked
||Cannot be bookmarked
||Can be cached
||application/x-www-form-urlencoded or multipart/form-data. Use multipart encoding for binary data
||Parameters remain in browser history
||Parameters are not saved in browser history
|Restrictions on data length
||Yes, when sending data, the GET method adds the data to the URL; and the length of a URL is limited (maximum URL length is 2048 characters)
|Restrictions on data type
||Only ASCII characters allowed
||No restrictions. Binary data is also allowed
||GET is less secure compared to POST because data sent is part of the URL
Never use GET when sending passwords or other sensitive information!
|POST is a little safer than GET because the parameters are not stored in browser history or in web server logs
||Data is visible to everyone in the URL
||Data is not displayed in the URL
Here are some interesting links recommended by Google in Android Nanodegree program:
- Programmable Web API Directory
- Google APIs Explorer
Type about:config and change the following to false:
Here is a small REGISTRY file which disables Windows Error Reporting.
This will disable the “Checking for solutions” popup.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting]
Here is a list of configuration (registry) files for basic Windows 10 configuration:
- Disable “Windows Error Reporting” (download)
For the official instructions (Tomcat 8), read this page
The following instructions are for development servers only:
Step 1: Create a keystore file to store the server’s private key and self-signed certificate:
"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA
$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA
You will be asked for various information. Remember the password you typed at this step.
At the end of the procedure, keytool will create a file named “.keystore” to your home directory. By default it is hidden. This file should be moved to Apache-Tomcat home directory and can be renamed (eg to “keystore”).
Step 2: Disable APR:
Edit server.xml and comment out the following line:
Step 3: Activate the SSL connector
Edit server.xml and add (or uncomment and modify) the following lines:
You will have you replace “12345678” with your password.
You will also have to replace “keystore” with the full path to the keystore file generated at Step 1.
Step 4: Restart Tomcat
Do not forget to restart Apache-Tomcat
Before upgrading to Windows 10, check if there are drivers written for your hardware specifically for Windows 10. You should definitely check that drivers exists for your network card and your audio card.
One reason is that Windows 10 suffer from the same (and important) problem Windows 8 suffer: High DPC (deferred procedure call) latency. If the drivers do not work properly you may have high DPC latency, which may result to audio staggering, lag, clicks, drop outs even if your CPU does not reach 100%. This means that there is a high chance you won’t be able to playback movies flawlessly while using the network card! What a break dealer!!! Continue reading Audio staggering in Windows 10
Here are the official recommended settings for Wifi 802.11n from Intel:
|802.11n channel width for band 2.4
||Auto (not in 20 MHz only)
|802.11n channel width for band 5.2
||Auto (not in 20 MHz only)
|Fat channel intolerant
||Medium (or less)
On the wireless router, check the following options:
|Auto channel scan
||Use 802.11n only
Verify that your cat does not health problems that prevent her from consuming milk.
If she is cannot or does not like to drink milk then you can do the same with tuna juice. You should use 100% real fish, packed in water and not oil..
- a plastic cup
- white milk / tuna juice
Step 1: Get a plastic cup:
Step 2: Cut the cup with scissors. Keep the base of the cup with 1cm approx height:
Step 3: Fill the cup with the milk/tuna juice, leave about 2mm empty
Step 4: Pour the medicine inside the cut cup.
Step 5: Stir
Step 6: Give it to the cat!
In this post I describe the common problem how to generate random weighted variables. For example you have a die with 6 faces that is fixed, so the probability of an 1 is not the same with the probability of a 2 etc.
The table below shows an example:
One easy solution is to reduce the problem to another one with a die with 100 faces that is not fixed.
You generate a random value from 0-99 that follows the uniform distribution. Do not use the modulo function to do that. See this post instead.
Once you have that value you perform the following steps:
You check the space within which that value relies.
- between 0 and 24, you generate 1 as the weighted variable
- between 25 and 49, you generate 2 as the weighted variable
- between 50 and 69, you generate 3 as the weighted variable
- between 70 and 89, you generate 4 as the weighted variable
- between 90 and 94, you generate 5 as the weighted variable
- between 95 and 99, you generate 6 as the weighted variable