July 27, 2015, 3:21 a.m.

Data Transmission Technologies

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

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.

July 26, 2015, 10:12 a.m.

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
July 21, 2015, 9:55 a.m.

Android

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
July 20, 2015, 2:57 a.m.

Data Transmission Technologies

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

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.

July 20, 2015, 2:38 a.m.

Data Transmission Technologies

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.

June 29, 2015, 3:47 a.m.

Fiber Optic Transmission Lines

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

June 29, 2015, 3:36 a.m.

Fiber Optic Transmission Lines

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) мкм.

June 28, 2015, 9:22 a.m.

Fiber Optic Transmission Lines

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

June 28, 2015, 8:37 a.m.

Fiber Optic Transmission Lines

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 .

Donate

Hello, Dear Users of EVILEG!!!

If the site helped you, then support the development of the site financially, please.

You can do it by following ways:

Thank you, Evgenii Legotckoi

SB
Dec. 5, 2019, 8:01 a.m.
Sergej Bederin

C++ - Test 001. The first program and data types

  • Result:60points,
  • Rating points-1
AS
Dec. 4, 2019, 6:39 a.m.
Artur Salmin

C++ - Test 005. Structures and Classes

  • Result:33points,
  • Rating points-10
ST
Dec. 2, 2019, 4:05 p.m.
Sergej Timchenko

Qt - Test 001. Signals and slots

  • Result:68points,
  • Rating points-1
Last comments
Dec. 5, 2019, 4:15 p.m.
Evgenij Legotskoj

В этом слоте ваам нужно будет правильно смаппить координату. У QGraphicsView есть методы mapToScene, mapFromScene. Попробуйте использовать их.
LP
Dec. 5, 2019, 8:30 a.m.
Leonid Pivovarov

А без переопределения qgraphicsScene это сделать возможно? Есть же коорината нажатия кнопки мыши slotCustomMenuRequested(QPoint)
Dec. 5, 2019, 8:11 a.m.
Mihailll

//qDebug()<<"position:"<<event->pos(); //qDebug()<<"position:"<<event->screenPos(); qDebug()<<"position:"<<event->scenePos();
LP
Dec. 5, 2019, 8:09 a.m.
Leonid Pivovarov

Подскажите пожалуйста, К graphicsView я подключил обработку контекстного меню: сonnect(ui->graphicsView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(slotCustomMenuRequest…
Dec. 4, 2019, 3:49 p.m.
Evgenij Legotskoj

resources_big - это флаг для сборки c++ приложения. Если Nuitka не предоставляет какой-либо функционал для прикручивания конфигурационных директив типа CONFIG при компиляции, то сомнева…
Now discuss on the forum
Dec. 5, 2019, 4:12 p.m.
Evgenij Legotskoj

Это уже кастомная стилизация. Придётся отключать обрамление и самостоятельно реализовывать ресайз окна, его перемещение, стиль и т.д. Вот статья, как отключить обрамление окна - QML …
Dec. 5, 2019, 4:27 a.m.
qml_puthon_user

Вот код, вдруг, кому поможет. Код основной формы: import QtQuick 2.12import QtQuick.Controls 2.12import QtQuick.Layouts 1.3import "./Components/Panels" as PanelsApplicationWindow{…
Dec. 5, 2019, 2:50 a.m.
Evgenij Legotskoj

Создавайте новые темы, чтобы не было всё в куче.
Dec. 4, 2019, 10:07 p.m.
qml_puthon_user

Спасибо за помощь! :) Я попытаю надежды в ожидании QtQuick3D от Riverbank'a. :)
V
Dec. 4, 2019, 7:02 a.m.
Vitali

Со временем распаковки соласен - для слабых ноутов это проблема и именно Nuitka мог бы здесь помочь, если бы заработало. А QtlFW - это уже фреймфорк для создания инсталятора из имеющихся па…
EVILEG
About
Services
© EVILEG 2015-2019
Recommend hosting TIMEWEB