export DB_HOST=localhost
#!/bin/bash
export MYENV=myvalue
python myscript.py
chmod +x start.sh
./start.sh
python sorted
- https://tproger.ru/translations/python-sorting/filename=“myfile.doc”
Args:
chat_id (:obj:`int` | :obj:`str`): Unique identifier for the target chat or username
of the target channel (in the format @channelusername).
document (:obj:`str` | `filelike object` | :class:`telegram.Document`): File to send.
Pass a file_id as String to send a file that exists on the Telegram servers
(recommended), pass an HTTP URL as a String for Telegram to get a file from the
Internet, or upload a new one using multipart/form-data. Lastly you can pass
an existing :class:`telegram.Document` object to send.
filename (:obj:`str`, optional): File name that shows in telegram message (it is useful
when you send file generated by temp module, for example). Undocumented.
caption (:obj:`str`, optional): Document caption (may also be used when resending
documents by file_id), 0-1024 characters.
parse_mode (:obj:`str`, optional): Send Markdown or HTML, if you want Telegram apps to
show bold, italic, fixed-width text or inline URLs in the media caption. See the
constants in :class:`telegram.ParseMode` for the available modes.
disable_notification (:obj:`bool`, optional): Sends the message silently. Users will
receive a notification with no sound.
reply_to_message_id (:obj:`int`, optional): If the message is a reply, ID of the
original message.
reply_markup (:class:`telegram.ReplyMarkup`, optional): Additional interface options. A
JSON-serialized object for an inline keyboard, custom reply keyboard, instructions
to remove reply keyboard or to force a reply from the user.
thumb (`filelike object`, optional): Thumbnail of the
file sent. The thumbnail should be in JPEG format and less than 200 kB in size.
A thumbnail's width and height should not exceed 90. Ignored if the file is not
is passed as a string or file_id.
timeout (:obj:`int` | :obj:`float`, optional): Send file timeout (default: 20 seconds).
**kwargs (:obj:`dict`): Arbitrary keyword arguments.
Returns:
:class:`telegram.Message`: On success, the sent Message is returned
серверная - это закуточек 1х2м. Все практически впритык. Пыль гуляет.
Стоит 2 сервера, вскоре поставлю 3-й. маршрутизатор, пару коммутиров стоичных, видеорегистратор. Обслуживать невозможно.
Как бы летом не полыхнуло.
В компании компов под 40. Идет производство. Долгий сбой недопустим.
Хочу написать служебку с обоснованием необходимости организации серверной. ....
Все рабочие места должны быть построены на основе как минимум двух телекоммуникационных розеток, обслуживаемых двумя кабелями горизонтальной подсистемы:
Теоретически 802.11n способен обеспечить скорость передачи данных до 600 Мбит/с брутто, применяя передачу данных сразу по четырём антеннам, однако обычно встречаются решения 802.11n с одной антенной и скоростью до 150 Мбит/с.
Реальная скорость передачи данных всегда меньше канальной скорости. Для Wi-Fi реальная скорость передачи данных обычно отличается более чем в два раза в меньшую сторону[6].
Кроме того, существует еще несколько факторов, ограничивающих реальную пропускную способность:
Канал всегда делится между клиентами;
Передавая служебный трафик, точка доступа всегда подстраивается под клиента, работающего на минимальной скорости;
Наличие помех (работающие рядом точки доступа, микроволновые печи, «радио-няни», bluetooth-устройства, радиотелефоны);
Стоит отметить, что при работе в стандарте 802.11b или при обеспечении совместимого с ним режима существует всего три непересекающихся канала, то есть которые не мешают друг другу (обычно это 1-й, 6-й и 11-й). То есть, если у соседа за стеной работает точка доступа на 1-м канале, а у вас дома на 3-м, то эти точки доступа будут мешать друг другу, тем самым уменьшая скорость передачи данных.
int number = 388;
int tail = number;
int mul = 1;
if(number % 2 == 0) {
mul = 2; tail = number/mul;
}
if(number % 3 == 0) {
mul = 3; tail = number/mul;
}
if(number % 4 == 0) {
mul = 4; tail = number/mul;
}
if(number % 5 == 0) {
mul = 5; tail = number/mul;
}
if(number % 6 == 0) {
mul = 6; tail = number/mul;
}
if(number % 7 == 0) {
mul = 7; tail = number/mul;
}
if(number % 8 == 0) {
mul = 8; tail = number/mul;
}
if(number % 9 == 0) {
mul = 9; tail = number/mul;
}
System.out.printf("%d = %d√%d = %d * %.20f\n", number, mul, tail, mul, Math.sqrt(tail));
388 = 4√97 = 4 * 9,84885780179610400000
int number = 388;
int tail = number;
int mul = 1;
for(int i=2; i<number/2; i++) {
if(number % i == 0) {
mul = i; tail = number/mul;
}
}
System.out.println(Math.sqrt(tail));
System.out.printf("%d = %d√%d = %d * %.20f\n", number, mul, tail, mul, Math.sqrt(tail));
388 = 97√4 = 97 * 2,00000000000000000000
package com.antek.memgen.gui;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class Objects {
public static class ItemsNames {
private Map<String, List<String>> laptops = new HashMap<>();
private Map<String, List<String>> phones = new HashMap<>();
public ItemsNames() {
List<String> dell = new ArrayList<>();
List<String> hp = new ArrayList<>();
List<String> apple_comps = new ArrayList<>();
List<String> nokia = new ArrayList<>();
List<String> xiaomi = new ArrayList<>();
List<String> apple_phones = new ArrayList<>();
// initialize computers
dell.add(0, "DELL Inspiron");
dell.add(1, "DELL Latitude");
hp.add(0, "HP Pavilion");
hp.add(1, "HP_Omen");
apple_comps.add(0, "McBook Air 11");
apple_comps.add(1, "McBook Air 13");
// initialize phones
nokia.add(0, "Nokia 3310");
nokia.add(0, "Nokia 5.1");
xiaomi.add(0, "Xiaomi redmi note 3 pro");
xiaomi.add(1, "Xiaomi Mi 9T Pro");
apple_phones.add(0, "Iphone 8S");
apple_phones.add(0, "Iphone 11 Pro");
laptops.put("dell", dell);
laptops.put("hp", hp);
laptops.put("apple", apple_comps);
phones.put("nokia", nokia);
phones.put("xiaomi", xiaomi);
phones.put("apple", apple_phones);
}
public List<String> laptopNames(String brand) {
return laptops.get(brand);
}
public List<String> smartPhonesNames(String brand) {
return phones.get(brand);
}
}
public static void main(String[] args) {
// Simple tests
ItemsNames items = new ItemsNames();
items.laptopNames("apple").forEach(System.out::println);
items.smartPhonesNames("apple").forEach(System.out::println);
}
}