Privacy policyContactsAbout siteOpinionsGitHubDonate
© EVILEG 2015-2018
Recommend hosting
TIMEWEB
July 27, 2015, 7: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, 2:12 p.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, 1:55 p.m.

Android

Android, ListView, ListAdapter

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, 6: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, 6: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, 7: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, 7: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, 1:22 p.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, 12:37 p.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 .

Dec. 12, 2018, 6:49 p.m.
Yaroslav Chernetskyi

Qt - Test 001. Signals and slots

  • Result:31points,
  • Rating scores-10
Dec. 12, 2018, 6:19 a.m.
nikbobrecov

Qt - Test 001. Signals and slots

  • Result:57points,
  • Rating scores-2
Dec. 11, 2018, 6:59 p.m.
Feniks3000

C++ - Тест 003. Условия и циклы

  • Result:71points,
  • Rating scores1
Recent comments
Dec. 11, 2018, 9:01 p.m.
Евгений Легоцкой

Не знаю, какой-там конкретно эффект и если честно не хочется fl studio ради того, чтобы посмотреть устанавливать, но из того, что увидел в интернете. Предполагаю, что то, что вы хотите с...
Dec. 11, 2018, 7:25 p.m.
Vlad15007

Подскажите пожалуйста ( я новичок совсем)Можно ли организовать спрайт без этого окошка (как в fl studio fruity dance)?
Dec. 11, 2018, 3:06 p.m.
Евгений Легоцкой

Что интересно, если написать так from <application_name>.<module_name> import <filename> ,то PyCharm сносит крышу, если разрабатываешь в рамках проекта приложение, ко...
Dec. 11, 2018, 2:52 p.m.
Илья Чичак

Тут мне тоже есть что сказать=) Сами разрабы советуют импортировать следующим образом: from <application_name> import <module_name> Стоит избегать from . import &l...;
Dec. 11, 2018, 2:28 p.m.
Евгений Легоцкой

Твоя правда. Согласен. Свои миграции храню в репозитории. На продакшене только выполняю обновление структуры базы данных, после тестирования на дев сервере конечно (читай локальная машина разр...
Now discuss on the forum
Dec. 12, 2018, 5:52 p.m.
Михаиллл

Оказывается оно все переводит в нижний регистр и нужно так писать: SearchTableModel->setTable("\"Test2\"");
Dec. 12, 2018, 4:32 p.m.
Булат Гиниятов

Допустим в MyObject *myobject = new MyObject; есть метод start(){while(aaa){////////////////}} Как мне обратиться к методу stop(){aaa=false;} ? Соответственно по...
Dec. 12, 2018, 4:28 p.m.
xintrea

Как выяснилось в этом обсуждении: Отправка Email из Android в Qt для отправки Email в Android необходимо делать Java-метод, который и будет отправлять email. И этот Java-мет...
Dec. 12, 2018, 3:35 p.m.
lynx

если кому будет вдруг нужно, подумал я над предложением Евгения Но думаю, что проще какой-то функционал дополнить для TableView из Qt Quick Controls 2. вообще берем стандарт...
Dec. 12, 2018, 1:49 p.m.
Евгений Легоцкой

но у меня нет времени учиться ВЕЧНО давайте без истерик, вы это говорите человеку, который всю жизнь учился, учится и будет учиться, и в программировании всегда так, или учишься и...
Join us in social networks

For registered users on the site there is a minimum amount of advertising