This document lists homophones, which are words that sound the same but have different meanings and spellings. It provides examples of common homophone pairs like one/won, sent/cent, herd/heard, hour/our, sun/son, flour/flower, here/hear, there/their, rain/rein/reign, blue/blew, knead/need, see/saw/scene, for/four, through/threw, plains/planes, berries/buries, and road/rode. The document serves as a reference for homophones that are often confused in spelling and pronunciation.
The document discusses aging gracefully and provides tips for older individuals. It argues that aging is not something to fear and that one can feel young at any age. Some key points made include: see aging as a positive experience rather than only focusing on physical decline; stay active socially and mentally; laugh and smile daily to promote happiness; and explore new opportunities in later life rather than seeing it as a time of loss. The overall message conveyed is that aging can be a fulfilling time if one maintains an engaged lifestyle and positive outlook on life.
La gerencia industrial es un área importante para las organizaciones que busca utilizar de manera efectiva los recursos en las industrias manufactureras y de servicio para mejorar los beneficios. Trata sobre la planificación, organización, dirección y control de los procesos productivos. Se aplica a áreas como manufactura, producción, mantenimiento y control de calidad.
The document provides information about an upcoming trip to Swaziland, including travel dates, itinerary details, currency, packing recommendations, and preparatory action steps. The trip will involve an overnight flight to Johannesburg, South Africa followed by bus travel to Swaziland. Participants will spend 10 days in Swaziland serving and taking a safari/shopping day with the remaining time for rest and travel.
In this file, you can ref useful information about methods of performance appraisal such as methods of performance appraisal methods, methods of performance appraisal tips, methods of performance appraisal forms, methods of performance appraisal phrases … If you need more assistant for methods of performance appraisal, please leave your comment at the end of file.
This document lists homophones, which are words that sound the same but have different meanings and spellings. It provides examples of common homophone pairs like one/won, sent/cent, herd/heard, hour/our, sun/son, flour/flower, here/hear, there/their, rain/rein/reign, blue/blew, knead/need, see/saw/scene, for/four, through/threw, plains/planes, berries/buries, and road/rode. The document serves as a reference for homophones that are often confused in spelling and pronunciation.
The document discusses aging gracefully and provides tips for older individuals. It argues that aging is not something to fear and that one can feel young at any age. Some key points made include: see aging as a positive experience rather than only focusing on physical decline; stay active socially and mentally; laugh and smile daily to promote happiness; and explore new opportunities in later life rather than seeing it as a time of loss. The overall message conveyed is that aging can be a fulfilling time if one maintains an engaged lifestyle and positive outlook on life.
La gerencia industrial es un área importante para las organizaciones que busca utilizar de manera efectiva los recursos en las industrias manufactureras y de servicio para mejorar los beneficios. Trata sobre la planificación, organización, dirección y control de los procesos productivos. Se aplica a áreas como manufactura, producción, mantenimiento y control de calidad.
The document provides information about an upcoming trip to Swaziland, including travel dates, itinerary details, currency, packing recommendations, and preparatory action steps. The trip will involve an overnight flight to Johannesburg, South Africa followed by bus travel to Swaziland. Participants will spend 10 days in Swaziland serving and taking a safari/shopping day with the remaining time for rest and travel.
In this file, you can ref useful information about methods of performance appraisal such as methods of performance appraisal methods, methods of performance appraisal tips, methods of performance appraisal forms, methods of performance appraisal phrases … If you need more assistant for methods of performance appraisal, please leave your comment at the end of file.
Htet Paing Oo is seeking a challenging role in sales and marketing management. He has a bachelor's degree in chemistry from Dagon University and certificates in computer skills, leadership, marketing and IT. He has 9 years of work experience in sales, marketing, and project coordination roles in various industries. His responsibilities have included developing marketing strategies, managing sales teams, organizing events, and coordinating projects for non-profit organizations. He is proficient in English and Myanmar and has strong knowledge of marketing and SEO.
Ultrasound technician schools in michiganraymondult
This document lists and provides details on several ultrasound technician schools in Michigan. It explains that students must first obtain an associate's or bachelor's degree in a healthcare field before entering an ultrasound program to become qualified. It provides information on accreditation, employment prospects, and average wages for ultrasound technicians. Details are given for multiple schools in Michigan, including location, programs offered, faculty ratio, and accrediting agency.
Requirements For Epcs When Marketing Homes For Sale Or Letcrenergy
This document summarizes the requirements for providing energy performance certificates (EPCs) when marketing homes for sale or rent in the UK. An EPC must be made available to potential buyers or renters at the earliest opportunity such as during property viewings, when written information is provided, or before contracts are finalized. For homes requiring a home information pack, the EPC cannot be more than 3 years old. EPCs for other homes can be up to 10 years old. Estate agents are responsible for ensuring sellers are aware of their legal obligation to provide an EPC, though sellers remain legally responsible.
Concorde 4500 Software Version 6.50.02 Release BulletinVideoguy
System software version 6.50.02 provides several new features and enhancements for the Concorde¥4500 videoconferencing system, including support for H.263+ video at 30 frames per second, improved PT716plus audio, and simplified dialing options. It also removes previous restrictions and improves compatibility with other PictureTel and third party products. Users should keep the audio and video formats on automatic and upgrade passwords when installing this new software release.
The Android has become very important area in the field of a software package which represent in linux based OS for Mobile devices just like tablets & Smartphones in order to pursue virtually any Endeavour in the android field
Magestore’s mega menu magento extensionHillary0330
This is a Magento Menu extension that helps store-owners create professional magento navigation Menu easily without technical knowledge. Your customers can view and access products and categories just by hovering over the menu.
TIME Magazine Cover Portrait (Paintings)maditabalnco
Bernard Safran was a prolific cover artist for Time magazine from 1957 to 1966, painting over seventy portraits of prominent celebrities and newsmakers during that period. Thirty-six of his original Time cover paintings are now in the collection of the Smithsonian's National Portrait Gallery. Many of the other portraits he painted for Time covers were given to the individuals depicted. Safran was born in Brooklyn, NY in 1924 to immigrant parents.
This document proposes exploratory research to understand consumer perceptions of the X-Pert dishwasher brand compared to its main competitor, Vim. The research would use focus groups to assess brand awareness, preferences, drivers and barriers among current and lapsed X-Pert users. The study aims to identify communication strategies to increase X-Pert's market share. If approved, focus groups will be conducted in 4 cities among homemakers who use X-Pert or Vim. Results will provide insights on brand strengths/weaknesses and cues for positioning X-Pert.
This presentation discusses the state of commercial real estate markets in early 2009. It notes that fundamentals are currently well-aligned across major property types, but refinancing will be a major issue that year. It also compares the current downturn to the early 1990s recession, finding it is looking worse so far. The document outlines how lower mortgage rates are enabling refinancing but changes in capital markets are gradual. It discusses the impacts of layoffs and falling consumer confidence on the economy.
This document provides tips for staying positive in a tough work environment. It discusses negative influences like poor management, unrealistic deadlines, and competition. It suggests adopting a positive attitude by taking responsibility, controlling negative thinking, and choosing positive behaviors. Specific tips include focusing on daily good, practicing empathy, spreading smiles, keeping promises, and having a forgiving view of others. The overall message is that with a positive attitude, you can overcome challenges and have good days, while a negative attitude will always lead to bad days.
Htet Paing Oo is seeking a challenging role in sales and marketing management. He has a bachelor's degree in chemistry from Dagon University and certificates in computer skills, leadership, marketing and IT. He has 9 years of work experience in sales, marketing, and project coordination roles in various industries. His responsibilities have included developing marketing strategies, managing sales teams, organizing events, and coordinating projects for non-profit organizations. He is proficient in English and Myanmar and has strong knowledge of marketing and SEO.
Ultrasound technician schools in michiganraymondult
This document lists and provides details on several ultrasound technician schools in Michigan. It explains that students must first obtain an associate's or bachelor's degree in a healthcare field before entering an ultrasound program to become qualified. It provides information on accreditation, employment prospects, and average wages for ultrasound technicians. Details are given for multiple schools in Michigan, including location, programs offered, faculty ratio, and accrediting agency.
Requirements For Epcs When Marketing Homes For Sale Or Letcrenergy
This document summarizes the requirements for providing energy performance certificates (EPCs) when marketing homes for sale or rent in the UK. An EPC must be made available to potential buyers or renters at the earliest opportunity such as during property viewings, when written information is provided, or before contracts are finalized. For homes requiring a home information pack, the EPC cannot be more than 3 years old. EPCs for other homes can be up to 10 years old. Estate agents are responsible for ensuring sellers are aware of their legal obligation to provide an EPC, though sellers remain legally responsible.
Concorde 4500 Software Version 6.50.02 Release BulletinVideoguy
System software version 6.50.02 provides several new features and enhancements for the Concorde¥4500 videoconferencing system, including support for H.263+ video at 30 frames per second, improved PT716plus audio, and simplified dialing options. It also removes previous restrictions and improves compatibility with other PictureTel and third party products. Users should keep the audio and video formats on automatic and upgrade passwords when installing this new software release.
The Android has become very important area in the field of a software package which represent in linux based OS for Mobile devices just like tablets & Smartphones in order to pursue virtually any Endeavour in the android field
Magestore’s mega menu magento extensionHillary0330
This is a Magento Menu extension that helps store-owners create professional magento navigation Menu easily without technical knowledge. Your customers can view and access products and categories just by hovering over the menu.
TIME Magazine Cover Portrait (Paintings)maditabalnco
Bernard Safran was a prolific cover artist for Time magazine from 1957 to 1966, painting over seventy portraits of prominent celebrities and newsmakers during that period. Thirty-six of his original Time cover paintings are now in the collection of the Smithsonian's National Portrait Gallery. Many of the other portraits he painted for Time covers were given to the individuals depicted. Safran was born in Brooklyn, NY in 1924 to immigrant parents.
This document proposes exploratory research to understand consumer perceptions of the X-Pert dishwasher brand compared to its main competitor, Vim. The research would use focus groups to assess brand awareness, preferences, drivers and barriers among current and lapsed X-Pert users. The study aims to identify communication strategies to increase X-Pert's market share. If approved, focus groups will be conducted in 4 cities among homemakers who use X-Pert or Vim. Results will provide insights on brand strengths/weaknesses and cues for positioning X-Pert.
This presentation discusses the state of commercial real estate markets in early 2009. It notes that fundamentals are currently well-aligned across major property types, but refinancing will be a major issue that year. It also compares the current downturn to the early 1990s recession, finding it is looking worse so far. The document outlines how lower mortgage rates are enabling refinancing but changes in capital markets are gradual. It discusses the impacts of layoffs and falling consumer confidence on the economy.
This document provides tips for staying positive in a tough work environment. It discusses negative influences like poor management, unrealistic deadlines, and competition. It suggests adopting a positive attitude by taking responsibility, controlling negative thinking, and choosing positive behaviors. Specific tips include focusing on daily good, practicing empathy, spreading smiles, keeping promises, and having a forgiving view of others. The overall message is that with a positive attitude, you can overcome challenges and have good days, while a negative attitude will always lead to bad days.
REST (Representational State Transfer) е архитектурен стил за изграждане на лесни, разбираеми
и мащабируеми уеб услуги (web services). За мнозина разработчици уеб услугите предизвикват
неприятни (меко казано) чувства1. Това е така, защото тежките решения за предоставяне на
услуги в уеб (например SOAP) са неудобни и сложни за прилагане и изискват допълнително
разучаване на множество други технологии. REST се базира на фундаментите на уеб: HTTP, URI
и XHTML – и може да да се реализира с всеки език за програмиране на уеб или платформа.
Аудиторията ще бъде запозната с помощта на примери с основните принципи за изграждане
на услуги чрез методологията на REST. Ще бъдат подчертани предимствата и възможностите на
услугите. Ще бъде показано защо този стил набира все по-голяма популярност и защо големи
компании като Amazon, Ebay, Google предоставят главно REST-базирани услуги. Ще бъде
демонстрирано AJAX приложение като клиент на REST уеб услуга предоставена от Ruby on Rails
и Java Restlet приложение.
1. The better PHP API
(По-доброто PHP API)
От Васил Рангелов a.k.a. boen_robot
2. Какво е това „API“?
В програмирането:
“Application Programming Interface” – Набор от операции и
техните входове и изходи, с едно общо предназначение и
достъпни за програмиста.
В MikroTik RouterOS:
Клиент/сървър протокол от слой 7(ала HTTP, FTP, SSH и т.н.)
Предназначен за машини, не за хора
Строг, структуриран с липсващи „човешки“ удобства
За да се избегнат обърквания, протокола ще се води като
“RouterOS API”.
06.11.2014"The better PHP API" от Васил Рангелов
2
3. За какво може да се използва?
Създаване на собствени интерфейси за управление
Интеграция на RouterOS с външни приложения, пр.
Billing системи
Приложения за самообслужване
Мониторинг инструменти
С една дума: Автоматизация.
06.11.2014"The better PHP API" от Васил Рангелов
3
4. SSH vs. RouterOS API
И двете биха могли да се използват за автоматизация
SSH е предназначен за човешко ползване
„Козметични“ промени от една версия на RouterOS до друга могат
да предизвикат проблеми с инструменти за автоматизация
Преименуване/премахване на команди/аргументи/свойства може
да причини не само трудни за засичане грешки, но евентуално и
щети
RouterOS API е предназначен за машинно ползване
Единствено промени по самият протокол биха могли да причинят
затруднения
Лесни за засичане грешки и евентуално възстановяване без щети.
06.11.2014"The better PHP API" от Васил Рангелов
4
5. Езици с RouterOS API клиенти за общо
предназначение
PHP (3)
Java (2)
.NET (C# (3), VB.NET (1))
Python (2)
Node.js (1)
Perl (2)
Ruby (1)
Delphi (2)
C/C++ (4)
Erlang (1)
ActionScript (1)
06.11.2014"The better PHP API" от Васил Рангелов
5
6. Сравнение на PHP RouterOS API клиенти
06.11.2014
6
Клиент API PHP class
(Denis Basta)
RouterOS PHP class
(ayufan)
API PHP package
(boen_robot)
Изисква PHP версия 5.2+ 5.2+ 5.3+
Суров протоколен В/И Да Не Да
Улеснения с общо
предназначение
Един метод
(comm())
Не Набор от
класове
CRUD и др. улеснения Не Да Да (1 клас)
Асинхронни заявки Не Само с функции Да
Скриптове Не Псевдо Да
Постоянни връзки Не Не Да
Емулация на команден ред Не Не Псевдо
"The better PHP API" от Васил Рангелов
7. Подготвяне на рутера за RouterOS API
За RouterOS по-стари от v6.0, протокола трябва да се
включи с
/ip service enable api
Протокола е включен по подразбиране от RouterOS v6.0
RouterOS потребителят трябва да има “api” позволение
Началните потребителски групи го имат; внимавайте ако
използвате собствени потребителски групи
Ако се използват „input“ и „output“ веригите на защитната
стена, трябва да се позволят входящи връзки до TCP порт
8728, както и изходящи от TCP порт 8728.
06.11.2014"The better PHP API" от Васил Рангелов
7
8. Подготвяне на клиентското устройство за
RouterOS API
Инсталирайте всичко необходимо за създаване и
изпълнение на програми на избраният език
За PHP, това значи да инсталирате самият PHP интерпретатор и
евентуално да го закачите към web сървър
Най-лесно с цялостни пакети като XAMPP: http://apachefriends.org/
За приложения с команден интерфейс, самият PHP от
http://php.net/ е достатъчен
Позволете на съответните изпълними файлове (“php” и
може би “httpd”) да правят изходящи връзки към TCP
порт 8728
За Windows, отивате в защитната стена с Win+R, и изпълнявате
“wf.msc”.
06.11.2014"The better PHP API" от Васил Рангелов
8
9. Първо използване на PHP RouterOS пакетът
(бърз начин)
Изтегляте PHAR файла от https://pear2.github.io/Net_RouterOS/
Създавате файл в “htdocs” в директорията на Apache,
наречен пр. “rostest.php”, със следното съдържание:
06.11.2014"The better PHP API" от Васил Рангелов
9
<?php
use PEAR2NetRouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
try {
$client = new RouterOSClient('192.168.0.1', 'admin', 'password');
echo 'OK';
} catch (Exception $e) {
die($e);
}
До-настройте пътеката до “.phar” файла, IP-то и идентификационните данни на RouterOS
Отворете в web браузер http://localhost/rostest.php.
10. Алтернативни методи на инсталация
Разархивиране на TGZ или ZIP файла от https://pear2.github.io/Net_RouterOS/
Включвате „src/PEAR2/Autoload.php”
Чрез Composer:
composer require pear2/net_routeros
Включвате „vendor/autoload.php”
Чрез PEAR:
pear channel-discover pear2.php.net
pear install -a pear2/PEAR2_Net_RouterOS-alpha
Включвате „PEAR2/Autoload.php”
Чрез Pyrus:
pyrus install PEAR2_Net_RouterOS-alpha
Включвате „PEAR2/Autoload.php“.
06.11.2014"The better PHP API" от Васил Рангелов
10
11. Диагностика на проблеми (етап 1: среда)
Отваряте команден ред
В Windows, Win+R, и пишете “cmd”
Стартирате PHAR файла с PHP
Windows:
"D:пътдоphp.exe" "D:пътдоPEAR2_Net_RouterOS.phar“
UNIX:
"/път/до/php" "/път/до/PEAR2_Net_RouterOS.phar“
Оглеждате изхода за предупреждения и грешки
Забележка: За краткост, горното ще се съкрати на
“php PEAR2_Net_RouterOS.phar” в следващите слайдове.
06.11.2014"The better PHP API" от Васил Рангелов
11
12. Диагностика на проблеми (етап 2: връзка)
Стартирате PHAR файла с IP-то на рутера като аргумент
php PEAR2_Net_RouterOS.phar 192.168.0.1
Ако използвате различен порт за RouterOS API (пр. 443):
php PEAR2_Net_RouterOS.phar -p 443 192.168.0.1
Оглеждате изхода за грешки и възможни решения
Всичко е наред ако не виждате нищо и можете да пишете
Въвеждате “/quit” (без кавичките), и натискате Enter два пъти за изход.
06.11.2014"The better PHP API" от Васил Рангелов
12
13. Диагностика на проблеми (етап 3: логин)
Стартирате PHAR файла с потребителското име и парола
за RouterOS в края, пр.
php PEAR2_Net_RouterOS.phar 192.168.0.1 "admin" "password"
Оглеждате изхода за грешки и възможни решения
Всичко е наред ако не виждате нищо и можете да пишете
Въвеждате “/quit” (без кавичките), и натискате Enter два пъти за изход.
06.11.2014"The better PHP API" от Васил Рангелов
13
14. Пример: Torch за 4 секунди
06.11.2014"The better PHP API" от Васил Рангелов
14
<?php
use PEAR2NetRouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$client = new RouterOSClient('192.168.0.1', 'admin', 'password');
header('Content-Type: text/plain');
$torchRequest = new RouterOSRequest('/tool torch duration=4');
$torchRequest->setArgument('interface', $_GET['nic']);
foreach ($client->sendSync($torchRequest) as $response) {
foreach ($response as $name => $value) {
echo "{$name}: {$value}n";
}
echo "====n";
}
15. Пример: Извеждане на логът на RouterOS
06.11.2014"The better PHP API" от Васил Рангелов
15
<?php
use PEAR2NetRouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$client = new RouterOSClient('192.168.0.1', 'admin', 'password');
header('Content-Type: text/plain');
$util = new RouterOSUtil($client);
foreach ($util->setMenu('/log')->getAll() as $item) {
echo $item('time') . ' ' . $item('topics') . ' ' . $item('message') . "n";
}
16. Пример: Изпълнение на скрипт с параметри
06.11.2014"The better PHP API" от Васил Рангелов
16
<?php
use PEAR2NetRouterOS;
require_once 'PEAR2_Net_RouterOS-1.0.0b5.phar';
$client = new RouterOSClient('192.168.0.1', 'admin', 'password');
header('Content-Type: text/plain');
$util = new RouterOSUtil($client);
$util->exec('
/ip dhcp-client lease
make-static [find address=$address]
comment [find address=$address] $name
/log info "User $name now has the static IP $address"
',
array(
'name' => $_GET['user'],
'address' => $_GET['ip']
)
);
17. Поддръжка
Документация и още примери
GitHub wiki: https://github.com/pear2/Net_RouterOS/wiki
MikroTik wiki: http://wiki.mikrotik.com/wiki/API_PHP_package
За въпроси
MikroTik форум (на английски): http://forum.mikrotik.com/
Бъгове и предложения за клиента
GitHub: https://github.com/pear2/Net_RouterOS/issues
Бъгове и предложения за протокола
MikroTik поддръжка (на английски): support@mikrotik.com.
06.11.2014"The better PHP API" от Васил Рангелов
17
18. Често задавани въпроси (технически)
Може ли API приложение да работи директно от рутера?
Не.
Мога ли да логвам hotspot потребители с API протокола?
Не. Не с API протокола, не с SSH, не дори чрез Winbox.
Hotspot потребители могат да се логват ЕДИНСТВЕНО когато ТЕХНИТЕ
устройства направят HTTP(S) заявка до рутера с техните потребителско име и
парола
Ако рутера ми е скрит зад NAT?
Решенията са като за при всеки друг TCP протокол.
VPN?
Ами криптиране?
API протоколът има TLS криптиран вариант на порт 8729
PEAR_Net_RouterOS го поддържа, но заради проблеми в PHP, за сега такива
връзки са много нестабилни.
06.11.2014"The better PHP API" от Васил Рангелов
18
19. Често задавани въпроси (социални)
Защо още един PHP клиент?
Другите PHP клиенти не ми харесват
Както и доста не-PHP клиенти, но по-добре нещо от колкото нищо, та…
Протоколът е лесен за реализация от бакалаври по Информатика
като мен, та в крайна сметка „защо не?“
Защо PEAR(2)?
PEAR не е framework, ами колекция пакети, следващи общ кодов
стандарт
Нещо като „печат за качество“, макар вече не толкова широко приет
Защо текущата версия е beta?
За PEAR2, „beta“ НЕ значи „възможни внезапни грешки“
Означава „възможни несъвместими промени в следващата версия;
Прегледайте внимателно списъкът с промените при актуализации“
Подобно на това как Gmail дълго време беше beta.
06.11.2014"The better PHP API" от Васил Рангелов
19