Показаны сообщения с ярлыком howto. Показать все сообщения
Показаны сообщения с ярлыком howto. Показать все сообщения

вторник, 23 марта 2021 г.

Создание поддомена на голой VPS без контрольной панели (КП) от хостинга

Возникла у меня сгодня мысль написать одну утилику, которая бы парсила входящую почту по IMAP, сохраняла бы их в БД и отображала на веб-странице. Но речь сегодня не об этом. 

На вопрос где развернуть разработку этой утилиты, мне на ум сразу же пришло использовать своей рабочий VPS с рабочим доменом, и просто создать там поддомен, на котором можно было бы поиграться со скриптами, не трогая основной проект. Но проблема была в том, что мой VPS крутился без интеграции с КП хостинга, поэтому такая базовая операция, как создание поддомена, оказалась довольно замороченной. Итак, вот что я сделал:

1) Добавил A-запись в DNS c названием нового поддомена и айпи-адресом сервера. Так как я пользуюсь Cloudflare, то записи поменял в их КП. В ином случае нужно было бы менять DNS записи в КП хостинга. 

2) Создал и настроил виртуальные хосты на Apache, руководствуясь этим старым гайдом (если CentOS, то желательно юзать этот гайд, хотя в принципе подходит и тот и другой). Вообще-то говоря, это самая важная часть. При создании веб-сервера, нужно в первую очередь создавать и настраивать виртуальные хосты, чтобы в случае чего можно было без проблем добавить поддомены.

Итак, я всё сделал, файлы сайта перенёс в новую директорию и... сайт с поддоменом не открывается - браузер пишет, что имя домена не найдено. В чём же дело? Оказалось, что дело в моем тупом корпоративном интернете (да, я занимаюсь этой фигней во время рабочего дня), который очень долго хранит локальный DNS-кэш.

четверг, 16 января 2020 г.

How to transfer files from PC to iPad via Wi-Fi in Windows 10

I will describe a simple method to share files between your computer and iPad over a Wi-Fi network in Windows 10. You will not need to download additional software or buy any devices. All you need is an ordinary Wi-Fi router.

Step 1. Turn on network discovery and file sharing if you're not did it already.

If you open File Explorer, go to Network, and see an error message ("Network discovery is turned off…."), you'll need to turn on Network discovery to see devices on the network that are sharing files. To turn it on, select the Network discovery is turned off banner, then select Turn on network discovery and file sharing.



Step 2. Share a folder on your PC.
Right-click or press a file, select Give access to > Specific people. Choose your Windows 10 account (or any account you prefer).


Step 3. Find out your local IP address with Windows IP Configuration.
Open Command Prompt, enter ipconfig, look for the "IPv4 Address" row. The IP should look something like this: 192.168.xx.xx. 


Step 4. Setup connection on iPad
Open Files app on the iPad, which is a default file browser in iPadOS. Open locations menu > tap on three dots > Connect to Server


In the Server field type your local IP address from Step 3 > Connect > Connect As: Registered User > In the name and password fields enter the account credentials that you gave access in Step 2. For example:
username@outlook.com
password123

If connection is successful you'll see your shared files right off the bat.
Also you don't need to enter credentials every time because the successful connection will be saved and pinned in the Locations menu.

Bonus. How do I tell which files or folders I've shared over a network?
Just open File Explorer, then type \\localhost into the address bar.

вторник, 1 января 2019 г.

How to remove the annoying squeak on the Logitech G610

Ok so there is a slight problem on the Logitech G610 keyboard: when the backlight is on, a subtle high-frequency squeak comes out of the keyboard which is pretty annoying, especially if you have a good ear like me. And this squeak occurs when the backlight power is less than 100%. Here are the steps how to fix this:

1) Turn the backlight on full power
2) Open the program Logitech Gaming Software, then go to Lightning Settings
3) Select the level of illumination in Stock
4) Click on the color square on the Effect Selection box.

Here's the screenshot: