Evgenij LegotskojJuly 27, 2015, 3:21 a.m.

Data Transmission TechnologiesStandardize Data Transfer Technology

Стандартизация, ЛВС, ШПД

Standardization and sources of standards

Universal argument about the benefits of standardization, which is valid for all industries, computer networks is of particular importance. The essence of the network - the connection of various equipment, and therefore there is a problem of compatibility of the most critical one. Without coordination by all producers generally accepted standards for the equipment and protocols progress in the "construction" of networks would be impossible. Therefore, all the development of the computer industry is ultimately reflected in the standards - any new technology only assumes a "legal" status, where its content is fixed in the relevant standard.

Evgenij LegotskojJuly 26, 2015, 10:12 a.m.

AndroidToast - Customization pop-up message on the Android

Android, Toast

Give customization of all applications under OS Android !!!

With the slogan I want to tell today about customization pop-up message (Toast) in the Android OS. In any application that is designed and developed with great care, the question may arise about the customization of even such an element as a popup message. After the success of the application depends not only on ideas and utility, but also from the sale of the appearance of the parts, even the smallest and seemingly not very important.

Project structure

This lesson is to write an application that will display a customized pop-up message by pressing a button, which will not be subject of customization.

In the Project there are two classes:

  1. MainActivity
  2. MyListAdapter - which is responsible for the transmission of data in the form of a list item

Also, the project contains the following resource files:

  1. activity_main.xml
  2. toast_info.xml - pop-up message marking
  3. toast_border:xml - additional markup for background of pop-up message
  4. ic_info.png - Image Information icon, which will be used in the pop-up message
  5. string.xml - string constants file
Evgenij LegotskojJuly 21, 2015, 9:55 a.m.

AndroidAndroid. Customization ListView

ListView, ListAdapter, Android

Customization ListView is common in developing applications for Android OS. ListView (List) allows you to display the same type of information in your application, for example, show the products with prices and features, if you develop applications for online sales. At the same time being in fact a routine operation, however, some questions for novice developers deliver a lot of inconvenience. Some of these inconveniences and questions will be discussed in this article.

Project structure

This lesson is proposed to establish a small list with the flags of countries, called the currencies of these countries, and the abbreviation of the country.

Total is used to create a list of four countries: Russia, South Africa, Singapore, Turkey. Flags of these countries are in the drawable folder. Also there is an xml file to create backgrounds ListViewi flags. For storing names and abbreviations used strings.xml file. Also, a separate xml file to create the ListView layout.

In the Project there are three classes:

  1. MainActivity
  2. MyListAdapter - which is responsible for the transmission of data in the form of a list item
  3. DataFlags - class that is designed to facilitate the transfer of data to the adapter ListView
Evgenij LegotskojJuly 20, 2015, 2:57 a.m.

Data Transmission TechnologiesTopology data networks

иерархическая звезда, кольцевая топология, топология ЛВС, полносвязная топология, ячеистая топология

Under the topology of the network refers to the configuration of the graph, whose vertices correspond to the end nodes of the network (such as computers) and communications equipment (eg, routers), and the edges of the physical or informational communication between nodes.

Full mesh

Full mesh

This topology requires communication nodes N N (N-1) / 2 duplex physical links. The advantage of this layout is that it connects each node to each. Thus, in the event of a node failure, there is no malfunction of other nodes in the network based on this topology.

But in practice, this type of topology is not applicable, because it is a very expensive option of building a network.

Evgenij LegotskojJuly 20, 2015, 2:38 a.m.

Data Transmission TechnologiesArchitecture of data transmission networks

network, transmission

Decomposition of the tasks of networking

Network architecture - a view of the network as a system of interrelated elements, each of which is assigned a specific private function.

In addition, each of the network elements solves a common problem. All common task is broken down into a number of small tasks that solve different network elements, ie one single task is decomposed. The interaction between all network elements through a formalized set of rules, called the protocol.

Decomposition of the task

Decomposition - splitting a complex task into several simple.

Evgenij LegotskojJune 29, 2015, 3:47 a.m.

Fiber Optic Transmission LinesFOTL - Tutorial 004. Dispersion in the optical fiber

fiber, волс, модовая дисперсия

Distinguish mode dispersion, which is caused by a large number of modes in the optical fiber and the chromatic dispersion associated with the incoherence of light sources actually operating in a certain range of wavelengths.

Consider the propagation of the light beam along the multimode fiber. In this case there are two modes, the two beams. The first extends along the longitudinal axis of the fiber, while the other is reflected from the interfaces of media. Thus the path of the second light beam is greater than the first. As a result, when the two beams carrying the electromagnetic energy are added together, compared oblique beam with an axial beam is the time delay, which is calculated by the following formula:

c – speed of light
l – fiber length
n 1 , n 2 – refractive indices of the core and shell

Evgenij LegotskojJune 29, 2015, 3:36 a.m.

Fiber Optic Transmission LinesFOTL - Tutorial 003. The attenuation in the optical fiber

fiber, волс, потери

The most important parameters are the optical fiber loss and attenuation of the transmitted energy. These parameters define the range of the FOC and on its effectiveness. Attenuation in optical fibers due to manifestation of the following losses:

α c – own loss of fiber waveguides
α k – additional cable losses
α ik – absorption loss in the infrared region
α pr – the loss caused by the presence of impurities in the optical fibers

Proper loss fibers consist, in turn, an absorption loss of α p and scattering loss α r :

Attenuation due to the absorption due to the losses on the dielectric polarization depends strongly on the properties of the fiber material and is calculated by the following formula:

tgδ – dielectric loss tangent

The attenuation in the infrared region, situated in the wavelength range of more than 1.6 microns, calculated by the formula:

C and k – constant coefficients. For quartz glass C = 0,9; k = (0,7—0,9) мкм.

Evgenij LegotskojJune 28, 2015, 9:22 a.m.

Fiber Optic Transmission LinesFOTL - Tutorial 002.The optical fiber and its types

fiber, волс, типы волс

Depending on the number of the operating frequency propagating waves (modes) of the fibers and is separated into one multimode. The number of modes is dependent on the ratio of the diameter of the fiber core and the wavelength for optical fibers having step-index is calculated as follows.

α – fiber core radius,
λ – wavelength,
Δ – relative refractive index difference.

Since n 1 and n 2 have very similar meanings, the nominal value ∆ for most optical fibers is within

Evgenij LegotskojJune 28, 2015, 8:37 a.m.

Fiber Optic Transmission LinesFOTL - Tutorial 001. The optical fiber - operating principle

fiber, волс, апертурный угол

The optical fiber is a thin glass strand bilayer, each element (core and shell) has a different refractive index. The refractive index n of transparent material is the ratio of the velocity of light in vacuo (c - velocity of light) to the speed of light in this material (v), and defined by the following formula:

where ε and μ — respectively, relative dielectric and magnetic permeabilities.

Given that the relative magnetic permeability of the transparent material is usually constant and equal to one, the refractive index of the core for n 1 = √ε 1 , and for the shell n 2 = √ε 2 .

Timeweb

Let me recommend you the excellent hosting on which EVILEG is located.

For many years, Timeweb has been proving his stability.

For projects on Django I recommend VDS hosting

View Hosting
k
  • knobu
  • Sept. 23, 2020, 2:34 a.m.

C++ - Test 006. Enumerations

  • Result:60points,
  • Rating points-1
k
  • knobu
  • Sept. 23, 2020, 2:21 a.m.

C++ - Test 005. Structures and Classes

  • Result:91points,
  • Rating points8
k
  • knobu
  • Sept. 23, 2020, 2:16 a.m.

C ++ - Test 004. Pointers, Arrays and Loops

  • Result:80points,
  • Rating points4
Last comments

Qt/C++ - Lesson 006. QSqlQueryModel – Tables in Qt with SQL-query

QSqlTableModel выполняет ряд стандартных операций для одной таблицы из базы данных. Поэтому там и реализован функционал по удалению и редактированию. QSqlQueryModel позволяет выполнить запр…
VB

Qt/C++ - Lesson 006. QSqlQueryModel – Tables in Qt with SQL-query

Добрый день. Хотел спросить вот что. Создал проект на основе QAbstractTableModel. В MainWindow cоответственно создал модель и связал с представлением. Поиск веду по списку элементов модели,…

QCheckBox в качестве делегата QTableView

До тех пор, пока у вас проект содержит только одну таблицу, или несколько то может быть. Когда их будет 1000 и чекбоксы в разных колонках, то без делегатов и переопределения возвращаемых ре…
D
  • Damir
  • Sept. 20, 2020, 3:34 p.m.

QCheckBox в качестве делегата QTableView

bool Node::setData(const QModelIndex& index, const QVariant& value, int role){ switch (index.column()) { case 0: switch (role) { case Qt::CheckStateRole:// <- т…
VB

Qt/C++ - Lesson 004. QSqlTableModel – How to present the table from database?

Почему-то такой метод для обновления не работает, который можно было бы применить в данном примере. То есть в представлении данные удаляются и обновляются, а в базе данных изменений не происходи…
Now discuss on the forum

Как в qml работать с динамически созданными потомками?

В QML есть сборщик мусора, он может удалять объекты не сразу а по ппрошествии времени. Попробуйте при удалении вызывать сборщик мусора принудительно через gc()
VB

Как запустить программу с базой данных PostgreSQL на другом компьютере

Не требует никакую библиотеку, запускается на других компьютерах, где не установлена PostgreSQL, но создать элемент невозможно, тем более отредактировать или удалить.
p
  • prod1s
  • Sept. 24, 2020, 7:12 a.m.

через QT не могу открыть файл SQLite

Вирішення знайшов. Вказав замість назви БД об'єкт класу QSqlDataBase для QSqlQuery. QSqlQuery m_query = QSqlQuery(qSqlDataBase); Після двох днів пошуку рішення, все-таки знайшов…
U

как скрыть елемент с копии виджета

Дело в том, что ui класса находится в private-секции... И из-вне доступ получить, не нарушая канонов - не получится) Можно конечно сделать что-то в духе #define private public, но это для истинн…

MyForm(forms.Form): - непонятка

лично я бы сделал так: в get_context_data я бы генерил основной контекст, в а методах get и post я бы уже добавлял туда формы, правильно инициализированные. Т.е. class MySettingsCha…
About
Services
© EVILEG 2015-2020
Recommend hosting TIMEWEB