Category: Notes

How to measure distance (route and direct) between two points on Google maps

Table of contents

1. What is the difference between the distances directly and the route between two objects on the map

2. How to measure a route between two points on the map

2.1 How to measure a route between two points on the map on a computer

2.2 How to change the route between two objects on the map in Android

3. How to measure the direct distance between two objects on a map

3.1 How to measure the direct distance between two objects on a map on a computer

3.2 How to measure the direct distance between two objects on a map on Android

3.3 How to measure the direct distance between two objects on a map on iOS (iPhone & iPad)


What is the difference between the distances directly and the route between two objects on the map

The distance between two points can be measured as:

  • distances directly from one geographic feature to another
  • the distance of the route that you need to walk or drive to get from one point to another

Although these distances are related to each other, they are rarely the same. For example, in a city with tangled roads, the distance between two objects (for example, a house and a sea beach) may be 1.4 km in a straight line, but in practice, in order to get to the beach from the house on foot, you need to walk 2.1 km – because somewhere the roads form a fancy cobweb, some parts of the route are closed.. That is, these two distances differ by 50%. If we also take into account transport (cars, for example) and public transport, then the difference between these two distances will be even more significant.

In this post we will look at how to determine the distance between two objects on maps in a straight line and the distance of the route between them. We will learn how to do this on a desktop computer, as well as Android and iOS devices.

How to measure a route between two points on the map

How to measure a route between two points on the map on a computer

Go to Google Maps: https://www.google.com/maps

Then click on the “Directions” button:

You will see two fields. Click on the first one. You can enter an address to search. Another option is to specify the location directly on the map, for this click the magnifying glass (“Search”) and select the desired location on the map.

Now switch to the second field and select your destination in the same way.

Then select the method of travel (Recommended travel mode, Driving, Transit, Waling, Cycling, Flights).

You will see options for the shortest (or fastest, most convenient) routes, distance and travel time.

You can drag both the end and the starting point of the route, and each time the route will be rebuilt based on new initial data and you will receive updated information about the distance and time of movement.

If you want to change the path of the route, then you can drag any waypoints and select the desired route. For the new route, you will receive the calculated distance and travel time.

If you want to create a complex route, then click the “Add destination” button.

Note: if you have already performed a search on Google Maps, then to switch to the route building mode, click the “Directions” button.

The already familiar window will open, you just need to specify the second (starting) point of the route.

Optionally, you can swap the starting and ending points.

How to change the route between two objects on the map in Android

Open the Google Maps app.

Select the first object on the map by clicking on it, or use the search to select it.

Then click the “Directions” button.

Select the second point. If you want to swap the starting and ending points, then click on the symbol of the two arrows pointing up and down.

Second point selection options:

  • search
  • your current location
  • point on the map

For example, I select the second point on the map, when everything is ready, click OK.

Then choose a method of transportation (Recommended travel mode, Driving, Transit, Waling, Cycling, Flights).

You will be shown the length of the route and the time it will take to get there by the chosen method of travel.

As with the desktop version, you can switch between the suggested routes and estimate the length of each one.

How to measure the direct distance between two objects on a map

You can calculate the distance between two or more points on the map. For example, you can measure the mileage in a straight line between two cities.

How to measure the direct distance between two objects on a map on a computer

On your computer, open Google Maps. If you're using Maps in Lite mode, you’ll see a lightning bolt at the bottom and you won't be able to measure the distance between points.

Right-click on your starting point.

Choose “Measure distance”.

Click anywhere on the map to create a path to measure. To add another point, click anywhere on the map.

Optional: Drag a point or path to move it, or click a point to remove it.

At the bottom, you’ll see the total distance in miles (mi) and kilometers (km).

When done: On the card at the bottom, click Close Close.

How to measure the direct distance between two objects on a map on Android

Step 1: Add the first point

  1. On your Android phone or tablet, open the Google Maps app Google Maps.
  2. Touch and hold anywhere on the map. You'll see a red pin appear.
  3. At the bottom, tap the name of the place.

  1. On the place’s page, scroll down and choose Measure distance.

Step 2: Add the next point or points

  1. Move the map so that the black circle, or crosshairs, is on the next point you want to add.

  1. At the bottom right, tap Add.
  2. Add points until you're done.

Step 3: Get the distance

  1. At the bottom, you’ll see the total distance in miles (mi) or kilometers (km).
  • Optional: To remove the last point you added, tap Undo. To clear all points: At the top right, tap More and then Clear.
  1. When done, tap the back arrow in the top left.

Important note: Apparently, “Measure distance” does not appear if you select an organization. This inscription appears if you select a road or other empty place for which there is no detailed description.

How to measure the direct distance between two objects on a map on iOS (iPhone & iPad)

Step 1: Add the first point

  1. On your iPhone or iPad, open the Google Maps app Google Maps.
  2. Touch and hold anywhere on the map. You'll see a red pin appear.
  3. At the bottom, tap the name of the place.
  4. On the place’s page, scroll down and choose Measure distance.

Step 2: Add the next point or points

  1. Move the map so that the black circle, or crosshairs, is on the next point you want to add.
  2. At the bottom right, tap Add.
  3. Add points until you're done.

Step 3: Get the distance

  1. At the bottom, you’ll see the total distance in miles (mi) or kilometers (km).
  • Optional: To remove the last point you added, tap Undo. To clear all points: At the top right, tap More and then Clear.
  1. When done, tap the back arrow in the top left.

Gmail does not receive forwarded emails (SOLVED)

Some Gmail users face the problem that the configured forwarding to the Google mailbox (Gmail) does not work, or is unstable.

I faced such a problem when trying to set up forwarding from mail.ru mail to @gmail.com mail. In my case, forwarding from mail.ru was configured correctly and enabled. Moreover, it even worked for some time.

Google has shown that the problem when forwarded emails are not being delivered is encountered by many users – there is no official solution to the problem from Google.

First of all, it is recommended to check the filters in Gmail – some of them can send mail to spam or delete emails without putting them in the Inbox. Instead of going into the filters and trying to figure them out, just send a letter from the mailbox from which you set up forwarding to the address where you want to forward – if the electronic letter has arrived, then it is not about filters.

Instead of trying to fix unstable forwarded emails, there is another, more reliable way out. You can set up Gmail to check and receive mail from other mailboxes.

How to set up Gmail to check mail from other mailboxes

Go to Gmail mailbox, click the gear in the upper right corner and select “See all settings”.

Go to the “Accounts and Import” tab. Find the “Check mail from other accounts” section and click “Add a mail account”.

Enter the email address from which you want to forward emails as soon as they arrive.

Select “Import emails from my other account (POP3)”.

Enter your mailbox password.

Next, you will be asked if you want to be able to send electronic letters from this account. If so, you just need to enter the password again.

This method turned out to be more reliable than forwarding emails. You need to remember that emails will stop being forwarded (coming to your Gmail mailbox) if you change the password for the forwarded mailbox, so when you change your password, do not forget to change it in the Gmail settings.

How to block access to my site from a specific bux site or any other site with negative traffic

There are situations when negative traffic comes from certain sites, for example, from bux sites or simply from sites that you don't like. In some cases, such traffic can be dealt with, but not always.

Quite often, there are tasks like “go to a search engine, enter such and such a query, go to such and such a site” in bux sites – this is unlikely to be combated, since this request is difficult to distinguish from ordinary traffic.

But if the request is made directly from the bux site, or is shown in an iframe, then this can be dealt with.

Also, if your site has been added to an aggregator or a link is placed on a site that you do not like, then this method will also work.

For example, a bad site is https://site.click/. To block traffic from this site, you can use the following:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* - [R=404]

These lines need to be written to the .htaccess file. These are the rules for the mod_rewrite module, which is usually enabled in Apache.

In this case, everyone who came from the site https://site.click/ will be shown the message “404 page not found”. If desired, you can put any other response code instead of 404, for example, 403 (access denied), 500 (internal server error) or any other.

If you want to block access from multiple sites, use the [OR] flag, for example:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC,OR]
RewriteCond %{HTTP_REFERER} anotherdomain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} andanotherdomain\.com [NC,OR]
RewriteCond %{HTTP_REFERER} onemoredomain\.com [NC]
RewriteRule .* - [R=404]

Note that the [OR] flag does not need to be specified on the last line.

Instead of displaying an error, you can redirect to any page of your site, for example, in the following case, all users who come from the site https://site.click/ will be sent to the error.html page of your site:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* error.html [R]

And the following rules set everyone who came from the site https://site.click/ to redirect to https://natribu.org/ru/:

RewriteCond %{HTTP_REFERER} https://site.click/ [NC]
RewriteRule .* https://natribu.org/ru/ [R]

How to change the language of Google services

Google services are available in all languages supported by Google. You can change your account language at any time.

What does the change of language affect?

If you change your preferred language, you will be shown different content on the Internet. Google may use information about your chosen languages to display more relevant content on apps and services. To change your preferred language for mobile apps, go to the language settings on your device.

That is, first of all, changes in the language in Google services affect:

  1. The interface language, for example, in GMail.
  2. Suggested search results, they will be targeted to the selected language
  3. Advertising. The language you choose is one of the factors in which ads are shown to you.

How to change Google search language

To ensure that you are less likely to see sites in your current language and prioritize sites in your chosen language, change the language of Google services.

However, this does not mean that you will no longer be shown results in search results in languages other than the selected one. The fact is that search results are generated based on many factors, for example, the language of your web browser and the language of previously viewed websites.

If you do not want to change the language of all Google services, but want to change only the preferred language of the search results, then go to the website https://www.google.com/, search and click on the gear located to the right of the search bar.

In the menu that appears, select the “Language” item.

Select the desired search language and save your changes.

How to change the interface language of Google services

1. Sign in to your Google account.

2. Go to https://myaccount.google.com/language

3. Click the “Add another language” button or if the language you need is present in the “Added by Google” section, that is, added automatically, then click the “Save” button.

4. Select the language and dialect of the language and click the “Save” button.

5. Press the up arrow to prioritize the selected language.

You may need to restart your web browser for the changes to take effect.

If you want to return your language settings or select a different language, go back to https://myaccount.google.com/language and select your preferred language by clicking the up arrow next to it.

How to copy a Google map created by another user

Google Maps allows you to create your own maps by adding places, routes, markers, layers, information, areas. Sometimes users create very useful maps. Since this is a user's map, he, by his own decision, can change it, delete it or remove it from public access – sometimes it is a pity to lose access to the map, which is a storehouse of data and is the result of long and painstaking work. This article will show you how you can make a copy of a Google Map and have it even if the original map is no longer available or has changes that you don't like.

There is no copying option in the settings and actions with Google maps, but this does not mean that it is impossible.

Open the map you are interested in in a web browser, then go to https://www.google.com/maps/d/ and select the “Recent” tab.

Find the map you are interested in and click the button of three points, in the menu that opens, select “Copy”.

Now go to the “Owned” tab.

There you will find the copied map.

How to edit someone else's Google map

If you do not have permission to edit someone else's Google map, but you want to make changes to the map, then you need to copy the map, as shown above, you can edit this copied map.

Where Google maps are copied

Maps are copied to Google Drive. You will find your copy of the map at https://drive.google.com/drive/my-drive

How to make a map available to other users

By default, the copied map is available only to you. If you want to allow other people to access it, then open your copy of the map, and click the “Share” message.

Enable Preferred Access - Link Only or Full Access.

Copy the link to the map you want to share.

How to add a map to a site

To add a map to the site, open it, click the three-dot button, in the menu that opens, select “Embed on my site”.

You will be given a snippet of HTML code to insert a map into a website page.

How to wash your sneakers properly

Can my sneakers be machine washed?

About the fact that sneakers can be washed, I myself learned relatively recently. I like light-colored shoes or shoes with light-colored inserts, so they need to be looked after regularly.

I usually just wash my sneakers with a soapy sponge. But once communicating with a rather young acquaintance, I heard from her something about washing sneakers.

I asked:

- Can sneakers be washed in a washing machine?

She answered:

- Can… if mom doesn't see)))

In general, I washed my rather worn Zara trainers this way a couple of times and they looked good. But the third time after washing, holes appeared on them and the sneakers had to be thrown out.

That is, in principle, it is possible to wash sneakers, but, firstly, not everything, and, secondly, it must be done correctly.

Which sneakers can be washed in a washing machine

I got into a conversation about washing sneakers with a shoe saleswoman and she explained everything to me.

So, leather sneakers (like the one in the title photo above) cannot be washed. That is, you can wash them when you no longer feel sorry for them. In general, wash new leather sneakers the old fashioned way with a sponge and soap.

You can wash rag sneakers. An example of sneakers that can be washed in the photo below. After washing, they look like new:

How to properly wash sneakers in a washing machine

The most important thing is to choose the most gentle mode, namely:

  • minimum time
  • non-hot water
  • minimum spin speed or no spin at all

An example of my settings:

  • the program “Fast 30 minutes” is selected
  • I turned off the spin, so the washing time was reduced to 21 minutes
  • water temperature 20 ℃

Turning off the spin is a controversial decision, since the sneakers will have to be dried for at least a day and a lot of water will flow out of them. But I feel sorry for my sneakers, so I go to such inconvenience. Alternatively, you can choose to dry at 400 rpm.

Select the temperature in the range of 20-30 ℃. I don't have 30 ℃ in my washing machine settings, so I chose 20 ℃.

Insoles and so on usually do not need to be pulled out – in my opinion, in all modern sneakers they are simply glued.

I add one capsule of detergent.

As a result, the sneakers are clean and pleasantly scented.

The question of whether it is possible to wash sneakers along with clothes remains open))) But I would not recommend))

Intel disabled undervolting on 11th gen Tiger Lake CPUs

Owners of new computers, as well as users updating the BIOS of their laptops and computers, may have noticed that manufacturers have a tendency to disable undervolting. 10th Gen processors ship with undervolting disabled by default. To enable it, you need to find the appropriate setting in the depths of the BIOS.

If you have previous generations of central processors and after updating the BIOS, you notice that the undervolting has stopped working, then the matter is in this update.

And not everyone is lucky: sometimes manufacturers block the possibility of undervolting and do not offer any options to re-enable it. The only option in such a situation is to rollback BIOS to the previous version.

And now, in Intel 11th generation processors, undervolting is completely disabled, at the hardware level. There is no other way to turn it on.

The official reason? Vulnerability allowing Plundervolt attack.

How dangerous is a Plundervolt attack? All of the following conditions must be met:

1. Physical access (!) to a computer with an Intel processor

2. Elevated privileges (root rights) (!)

3. 3. Sophisticated software that drastically (-200-300mV range) lowering the voltage in a bizarre way causes malfunctions in calculations and access to the SGX…

4. This vulnerability is only possible on Intel Software Guard Extensions (SGX). Do you know what this is? I do not know either. This is something complex and very rarely (never?) used by regular users.

You may ask, why does this attack even need undervolting if you already have physical access and already have root rights? After all, even using one of these, you can get full access over the computer and do anything with it. The only reason people talk about this vulnerability is the possibility of an attack on SGX. But the site itself says:

If you do not use SGX, you do not need to do anything.

That is the attack does not apply to your computer.

The question is, how reliable are attacks with a strong decrease in voltage in general, if the computer in such cases prefers to simply freeze or go into a reboot?

Why for an attack that is impossible in real conditions and is not exploited by anyone due to the fact that it is pointless/impossible to exploit, it was necessary to completely block the possibility of undervolting? Why not give the “risky guys” an opportunity to turn on undervolting if they are willing to accept non-existent risk?

All these unanswered questions suggest that Intel wants users to buy more expensive processors if they lack the power or TDP.

First of all, owners of laptops, especially ultrabook models, will lose from the prohibition of undervolting. It is difficult to provide good cooling in them and undervolting was the Holy Grail for them. Especially unpleasant for the owner of powerful (gaming) laptops.

Undervolting allows you to use central processors more efficiently, thanks to it they overheat less, consume less energy, keep high frequencies longer (throttling happens less often), and more productive generally. It is a pity that 11th generation Intel processors are deprived of all this due to some phantom danger.

Moreover, it is written on the Plundervolt site, Intel has already released a patch that eliminates this vulnerability.

Redirect to HTTPS not working in WordPress

This is not an obvious problem, because for some pages the redirect to HTTPS works, but for some it does not. I ran into this problem on WordPress quite by accident. Therefore, if you are a webmaster with WordPress sites, then I would recommend that you check your sites too.

Redirecting from HTTP to HTTPS is quite simple, you need to add the following lines to the .htaccess file:

RewriteEngine on
RewriteCond %{HTTPS} !on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}

This is how I redirect to HTTPS on most of my sites.

To test the redirect to HTTPS, it is advisable to look at the HTTP response headers, since web browsers tend to open the site over HTTPS even if you explicitly specified the HTTP protocol in the URL, at least I noticed this with pages already opened over HTTPS.

In Linux, the response HTTP headers can be viewed with a command of the form (it will show both the headers and the response body):

curl -v 'URL'

And this command will show only headers:

curl -I 'URL'

If you run Windows, then you can use an online service to display HTTP headers.

We enter the site address http://site.ru/

Received HTTP redirect code:

HTTP/1.1 302 Found

We were redirected to the HTTPS version:

Location: https://site.ru/

Is everything working as it should?

We continue to check. We enter the site address http://site.ru/page-on-site

And… we get the code 200, that is, the page would be shown to us at the specified address, without redirecting to HTTPS.

This behavior can be observed on sites with beautiful (sometimes referred to as SEO) page URLs. In WordPress, this can be selected in Control Panel → Settings → Permalinks. Examples:

 Day and name	https://suay.site/2021/05/21/sample-post/
 Month and name	https://suay.site/2021/05/sample-post/
 Numeric	https://suay.site/archives/123
 Post name	https://suay.site/sample-post/

The point is that in order for any of these options to work, WordPress adds the following lines to the .htaccess file:

# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

These lines contain conditions and a rule for mod_rewrite with the [L] flag, which means that the check should be aborted according to the mod_rewrite rules. As a result, the HTTP to HTTPS redirect rule does not reach the queue.

That is, the redirect lines must be placed before the fragment that is generated by WordPress. Let's try:

Found
The document has moved here.

Additionally, a 302 Found error was encountered while trying to use an ErrorDocument to handle the request.

The situation has changed but has not improved.

It is necessary to add the [L] flag to the rewrite rule, and place these rules in the .htaccess file before the fragment from WordPress:

RewriteEngine on
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/.well-known/
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L]

# BEGIN WordPress
# Директивы (строки) между `BEGIN WordPress` и `END WordPress`
# созданы автоматически и подлежат изменению только через фильтры WordPress.
# Сделанные вручную изменения между этими маркерами будут перезаписаны.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

After that, everything will work exactly as you expect. All URLs, both the Front Page and other posts, starting with http:// will be redirected to https://

By default, the code will be “302 Moved Temporarily”. If you wish, you can select the code “301 Moved Permanently”:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

How to find out all DNS records of sites behind CloudFlare

How to list all DNS records for a domain

Using the dig command, you can display all types of DNS records for the specified domain at once, but it does not work in all cases:

dig zalinux.ru ANY

To query all types of DNS records, but limiting the number of displayed sections only by the response section, add the “+noall +answer” options:

dig zalinux.ru ANY +noall +answer

How to list all DNS records for a domain behind CloudFlare

It works fine in most cases. But for some sites in the DNS server settings it is forbidden to display a full list of records, examples of such sites are all sites behind CloudFlare.

As a result, for example, for the site hhzunt.top (hidden behind CloudFlare), the usual method fails to get the contents of DNS records:

dig hhzunt.top ANY

You can see the answer section, apparently it is a reference to some documentation:

hhzunt.top.		3787	IN	HINFO	"RFC8482" ""

Considering that requests for single records cannot be prohibited, and also taking into account that the number of DNS records is finite, you can enumerate them all one by one:

dig hhzunt.top A +short
dig hhzunt.top AAAA +short
dig hhzunt.top SOA +short
dig hhzunt.top MX +short

etc.

You can also use the online service on the w-e-b.site or SuIP.biz website, where a new method has been added to obtain all DNS records for a specific site. The essence of the method is a full enumeration; queries are made to the DNS server for each type of record. As a result, it is now possible to get a complete list of DNS records even for sites behind CloudFlare.

Service address: https://w-e-b.site/?act=alldns

Its mirror: https://suip.biz/?act=alldns

Enter the site address, select “Enumeration” as the method.

An example of getting all DNS records for a site behind CloudFlare:

DNS records SVCB and HTTPS are displayed for all sites – regardless of whether the system administrator set them or not. Their value repeats the contents of the A record.

Permanent message “Briefly unavailable for scheduled maintenance. Check back in a minute.” (SOLVED)

When updating plugins, themes or WordPress engine, the site is automatically closed for users and instead they see the message “Briefly unavailable for scheduled maintenance. Check back in a minute”.

This is normal and the site reopens immediately after the update is complete. But if the updates were interrupted, for example, due to your unstable Internet connection, then the website unavailable message will not disappear. This article will guide you on how to fix the problem after an interrupted WordPress update.

How to update WordPress and plugins

To check available updates and update the WordPress engine, plugins and themes go to WordPress Admin Panel → Dashboard → Updates:

Or click on the two arrows in the form of a circle – the number shows the amount of available updates. If you do not see this icon, then there are no updates – all files are up to date.

How to fix “Briefly unavailable for scheduled maintenance. Check back in a minute”

If the update was interrupted – for example, you closed the page before the updates were completed, or you lost your Internet connection, or you received the ERR_NETWORK_CHANGED message in your web browser, then you can fix the problem by having access to the file system of the site.

1. First, wait a while to make sure that the updates are actually complete and that the message does not disappear automatically.

2. Go to the site folder

3. In the root directory (folder) of the site, find and delete the .maintenance file

Note that files starting with a dot are considered hidden on Linux systems. Therefore, if you have opened the correct folder, but you do not see this file, try to enable the display of hidden files in the file manager settings.

How to fix “Another update is currently in progress”

In some situations, for example, if you wait a long time after an unsuccessful update, the message that the site is unavailable for maintenance disappears and it seems that everything starts working as before, but when you try to perform the WordPress update, a message appears:

WordPress auto-update failed to complete – please try again.

Update WordPress

Another update is currently in progress.

This message will not disappear on its own. To correct this error, follow the steps above – that is, locate and delete the .maintenance file.   

Loading...
X