November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Categories

November 2024
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  

Television has two roles: to inform and to entertain. Explain which of these roles you see as more important. To what extent do you think that TV today performs each of these roles in an effective way? Support your point of view with details from your own experiences, observations or reading.

Television has two roles: to inform and to entertain. Explain which of these roles you see as more important. To what extent do you think that TV today performs each of these roles in an effective way? Support your point of view with details from your own experiences, observations or reading.

Television when invented in the 1960’s, was primarily for the purpose of entertainment. People liked to spend time watching the dramas or information programs together with the whole family. Earlier there was little else to engage into.

Over the decades, the content on the television has had a dramatic change. With the advancements in technology and sciences, there is more information available. The availability of equipment to discover new places, and invent things, has lead to a race to know more about the world. This has eventually lead to a lot more information being made available on the television. In current times, along with family dramas and information, the meaning of entertainment is not only restricted to family drama’s and film’s but know about the things, nature, the world around is equally a type of entertainment. Channels like Discovery, TLC, BBC provide holistic infotainment.

Similarly, use of technology in broadcasting live events, like from a war zone, a music concert, a sports event etc., has brought in real time information being available to watch. To know about what is happening around the world, the current issues, the natural disasters or medical emergencies plaguing various places. This information being shown on television has lead people to engage themselves in activities that can prevent such happening in future. Or just go ahead and help in various rescue operations.

To conclude, given the various examples above I would say the television has played the role of providing entertainment and information very well. This has also lead to people being more aware and encouraging them to take up various social causes. Which overall is beneficial for the society.

“In a war of ideas, it is people who get killed”. Does a common man suffer from a group’s ideology? Express your opinion, and support the same with reasons and examples?

 “In a war of ideas, it is people who get killed”. Does a common man suffer from a group’s ideology? Express your opinion, and support the same with reasons and examples?

 

While reading the statement there are lot of things that can be said on war of ideas” first of all I will clear this statement that war of ideas means the decision which is made on spot. I am partially agreed with statement and give my viewpoints in upcoming paragraphs.

Firstly elaborating, it can be said that there are lot of steps  taken by politicians such as Russia that threw bombs on Yemen to kill members of terrorist group “lakshar-e-Taliban”, so by these steps peace cannot be maintained and it would not be good for mankind. Numerous countries join the international meeting against the terrorists in USA.

Secondly if discussing about cons of this statement are that some countries that give orders to attack on other countries to kill terrorists like America and Russia, but in some situation’s record shows that innocent people were killed. So it is too dangerous for the growth of country and individuals. Moreover war is the root cause of disease. For instance: – Japan in 2nd world war.

 

Finally, from my point of view that this statement have both values but the steps which are taken by politicians should be non violent and should be safe for masses.

XENOPHOBIA HAS ACCELERATED RAPIDLY IN THE WESTERN COUNTRIES. ACCORDING TO YOU WHAT SOLUTIONS CAN BE PROPOSED BY THE GOVERNMENT AND INDIVIDUALS?

XENOPHOBIA HAS ACCELERATED RAPIDLY IN THE WESTERN COUNTRIES. ACCORDING TO YOU WHAT SOLUTIONS CAN BE PROPOSED BY THE GOVERNMENT AND INDIVIDUALS?

A person who is fearful or contemptuous of that which is foreign, especially of strangers or of people from different countries or cultures. but these xenophobia is elevating rapidly in the western countries it is having numerous causes as well as to kick off, Like all phobias, there is no universally specific cause that leads to the development of xenophobia but some symptoms show that if it left untreated it can have some dangerous effects like Distrust aimed specifically towards cultures perceived by the phobic to be different.

Rash generalizations and stereotypes aimed at a set of people who can be identified by superficial qualities and Finding abusive and prejudiced behavior humorous.

On the other hand, some possible solutions can be proved helpful to combat this problem firstly mental health therapy can be fruitful for the person’s irrational and extreme fear. The patient and therapist talk about why the fear unfounded, how they can come to terms with any traumatic experiences that caused the phobia, next awareness given to the person who is having this problem can lead to a peaceful state of mind of that person.

In summary, every problem has possible solutions but this cannot be worked without the help of self-motivation that needed to be given to victim himself.

TALK ABOUT PROS AND CONS OF THIS ERA AS IT IS FULL OF DAILY INVENTIONS.

TALK ABOUT PROS AND CONS OF THIS ERA AS IT IS FULL OF DAILY INVENTIONS.

In today’s world, where just about everything is more convenient and accessible due to advances in technology across almost all sectors, it may seem as though it’s a misnomer to even mention any disadvantages of technological advances. However, technologyhas proved boon and bane for the society. Lets us delve deeper on this issue in forthcoming paragraphs.

To commence with, Technology advances show people a more efficient way to do things, and these processes get results. For example, education has been greatly advanced by the technological advances of computers. Students are able to learn on a global scale without ever leaving their classrooms. Moreover, medical discoveries occur at a much more rapid rate. Result of advancement in technology means cost savings for business owners. It helps to allow them to invest in growth in other areas of the business, which contributes on a positive level to the economy as a whole.

On the contrary, it has disadvantages too. The more advanced society becomes technologically, the more people begin to depend on computers and other forms of technology for everyday existence. This means that when a machine breaks or a computer crashes, humans become almost disabled until the problem is resolved. This kind of dependency on technology puts people at a distinct disadvantage, because they become less self-reliant. Its continuously making the masses fatigue and lazy.

To sum up all, as machines and computers become even more advanced and efficient, this will continue to be a growing disadvantage of technology and an issue that has a global impact will also increase but people should make a balance in using the technology and man power resources for the betterment of humankind.

Essay-Do you think that consumer should avoid over packed products or it is the responsibility of the producer to avoid extra packaging of products?” Give your views or any relevant example with your own experience.

Essay-Do you think that consumer should avoid over packed products or it is the responsibility of the producer to avoid extra packaging of products?” Give your views or any relevant example with your own experience.

 

In my opinion, the customer should discard the product with extra packaging as well as the manufacturer also share an equal responsibility of the commodities. On one hand, consumers should not buy the over packaged products, simultaneously they should buy products which have biodegradable packaging and finally shouldof segregate the dangerous packaging material while disposing off. On the other hand, the manufacturers should always look out new technology for packaging which is eco-friendly, go for bare minimum packaging that is required and should always follow the environmental laws.

Firstly, a lot of damage is done to the environment when packaging material is not properly disposed off. For example, plastic and polyethylene are not biodegradable and remains intact even after 1000 years. Secondly, lots of cardboards are used as packaging material for which lots of trees are cut down, which is the major cause of deforestation. Moreover, with additional packaging, the cost of the product also increases. Over packaging is also hazardous for the animal and aquatic life, as many animals’ diesby consuming polyethene and marine life is disturbed and choked when these materials are disposed in rivers or sea.

As a responsibility, the consumers should discard the over-packaged products and should go for biodegradable packaging products. Secondly, they should not dump the packaging materials along with the garbage. Any packaging material if there should be properly disposed off or recycled. Most importantly all the consumers should follow the environmental rules and regulation which will make their surrounding eco-friendly. Lastly, knowledge about keeping the environment clean and safe should be given in schools and colleges and citizens should organize awareness campaigns with the help of NGOs about the ill effect of extra packaging.

Lastly, the manufacturer should also take equal responsibility to avoid extra packaging. They should always look out for some new technology for biodegradable packaging. Secondly, producers should pack the products with only bare essential packaging. Finally, producers should always follow the environment rules and regulations in terms of extracting packaging material

All in all, it can be concluded that both consumers and manufacturers should share the responsibility and go hand in hand to avoid the ill effects of extra packaging.

Essay – Some people believe laws change human behaviour. Do you agree with it?

Some people believe laws change human behaviour. Do you agree with it?

Few people are of the view that the rule of the land changes the conduct and the nature of persons. I, totally agree with this statement because the presence of law builds up the confidence among the citizens and make the society disciplined. Furthermore law abiding citizens live a safe life with harmony among themselves.

Firstly, with the presence of certain laws, the confidence among the civilians increases because every citizen feels that justice and fairness will be delivered to them. Law does not differentiate the citizens on the basis of money, sex or creed. That is why the law instils confidence among the citizens. Recently in 2012, changes have made in the Indian laws, and now the laws to protect the women are even more stringent and strict. This act has grown the confidence of the women more.

Secondly, with the presence of law people feel safe. For instance in many countries, it is mandatory to wear helmet and fasten the seat belt while driving the vehicles. Obeying the traffic laws make the people safe and it brings discipline among them.

Thirdly, certain laws also help the citizens to remain healthy. For example narcotics laws prevents the people from the drug abuse. Harsher punishments are awarded to the offenders in many countries. Healthy and fit people tend to be more efficient and happy.

Finally, it can be concluded that law do affect the behaviour of the people. A common man lives his life stress free, while the criminals are always in a fear of being caught.

pvresize command

Resolution

pvresize is a tool to resize Physical Volume which may already be in a volume group and have active logical volumes allocated on it.

Expand the PV on /dev/sda1 after enlarging the partition with fdisk:

pvresize /dev/sda1

Shrink the PV on /dev/sda1 prior to shrinking the partition with fdisk (ensure that the PV size is appropriate for your intended new partition size):

pvresize --setphysicalvolumesize 40G /dev/sda1

SSH vulnerabilities: HMAC algorithms and CBC ciphers

e defaults in the various RHEL version differ and the current default can be found in manual page for sshd_config. For example RHEL6:

The default is:
                aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,
                aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,
                aes256-cbc,arcfour,rijndael-cbc@lysator.liu.se

You can remove the CBC ciphers by adding the line for RHEL7:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,arcfour

The line for RHEL6:

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,arcfour

The line for RHEL5 (note the order of ciphers – the RC4 cipher is also known for several vulnerabilities and should not be used):

Ciphers aes128-ctr,aes192-ctr,aes256-ctr',arcfour128,arcfour256,arcfour
  • Restart sshd to apply the changes:
# service sshd restart

D5 HMACs

  • In order to remove HMAC MD5, add or modify the “MACs” line in /etc/ssh/sshd_config as below.

The defaults in the various RHEL version differ and the current default can be found in manual page for sshd_config. For example RHEL6:

The default is:
                   hmac-md5,hmac-sha1,umac-64@openssh.com,
                   hmac-ripemd160,hmac-sha1-96,hmac-md5-96,
                   hmac-sha2-256,hmac-sha2-512,hmac-ripemd160@openssh.com

You can remove the hmac-md5 MACs by adding a line to /etc/ssh/sshd_config for RHEL7:

MACs hmac-sha1-etm@openssh.com,umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-ripemd160-etm@openssh.com,hmac-sha1,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160

The line for the RHEL6:

MACs hmac-sha1,umac-64@openssh.com,hmac-ripemd160,hmac-sha2-256,hmac-sha2-512,hmac-ripemd160@openssh.com

The line for RHEL5:

MACs hmac-sha1,hmac-ripemd160
  • Restart sshd to apply the changes:
# service sshd restart

Changing temporary directory for sort – bash

I was sorting a very big file using Linux sort command and unfortunately the sort failed as there was not enough space on my /tmp directory.

$ sort -t “|” -k5 ka.log.32323112.out > ka.log.32323112.out
sort: /tmp/sort1928700448: write error: No space left on device

just to mention, sort by default uses /tmp for temporaries.

So, how you can tell sort to use some other directory for temporaries ?

From man pages of sort(1)

-T, –temporary-directory=DIR
use DIR for temporaries, not $TMPDIR or /tmp; multiple options specify multiple directories

$ sort -T /home/jadu/ -t “|” -k5 ka.log.32323112.out > ka.log.32323112.out

It worked 🙂

Another way would be : export env variable TMPDIR to some directory which have sufficient space.

e.g.

$ export TMPDIR=/path/to/other/directory
$ sort -t “|” -k5 ka.log.32323112.out > ka.log.32323112.out

It worked too 🙂

MySQL InnoDB engine B + tree index simple finishing instructions

There are several types of InnoDB engine tables in MySQL (the following index, no special instructions, refers to the InnoDB engine table index.)
0 = Secondary Index, 2-level index,
1 = Clustered Index, clustered index
2 = Unique Index, Unique Index
3 = Primary Index, Primary Key Index
32 = Full-text Index, Full Index
64 = Spatial Index
128 = A secondary index that includes a virtual generated column.

The second-level index, the clustered index, the unique index, the primary key index, the second-level computed column index, and the logical storage structure, are all stored in the B + tree to store
this point with the B + tree index logical storage structure of the other database Not too different, the above several indexes are divided from the logical point of view.

If the physical storage from the point of view, MySQL in these types of index can be divided into clustered index and secondary index (or non-clustered index)
Among them, the primary key index and clustered index, can be classified as clustered index, Unique index, secondary computed column index data nonclustered index.

The clustered index in MySQL

MySQL clustered index is based on the primary key, the entire table of data, logically organized into a B + tree, so a table can only be a clustered index.
The non-leaf node stores the clustered index key value, and the leaf node stores the data itself in the table, and the leaf node and the leaf node are connected together by a two-way list.

Know the MySQL clustering index before the first look at the MySQL primary key generation mechanism.
MySQL InnoDB must have a primary key,
if the time specified in the construction of the primary key, then the primary key is the main key of the table (sounds so awkward, mainly with the primary key is not specified, the automatic generation of the main key for comparison)
If the primary key is not specified, the storage engine will automatically create a primary key column for the table.
1) For the table that specifies the primary key, the primary key is the primary key index.
2) For tables that do not specify a primary key, If there is a unique index (one or more) that is not empty, the (first) non-null unique constraint is the primary key.
3) For a table that does not specify a primary key and there is no unique constraint, a primary key is generated by default. The index is “clustered index”, in
fact, the former “primary key index” and the latter “clustered index”, the physical storage can be attributed to clustered index

1, explicit primary key index (clustered index)

In the following screenshot, the test_index_type_1 is created
when the primary key is specified in the table, the primary key defaults to the primary key index. The index type is 3 (from the physical storage point of view, the index is
created ) Level index, the index type is 0 (from the physical storage point of view, is non-clustered index)

 

 

2, non-empty unique constraints generated by the primary key index (clustered index)

The following screenshot, created test_index_type_2,
did not specify the primary key when the table was created , but specified a unique non-null constraint, then the field would be used as the primary key, and the resulting index type would be 3 (from the physical storage point of view index)

 

 

 

3, the system default primary key generated clustered index (clustered index)

In the following screenshot, the test_index_type_3 table was created,
the primary key was not specified at the time of the table, and the unique non-null constraint was specified. The InnoDB engine automatically generates a 6-byte pointer. The generated index type is a clustered index, (From the physical storage point of view, is the clustered index)

 

 

Nonclustered index

The non-clustered index, the nonclustered index is also the structure of the B + tree to store the data.
The difference from the clustered index is that the leaf node of the nonclustered cable stores only the key value of the index + the key value of the clustered index, but does not include All non-index key values.

1, unique index generated by the unique index (non-clustered index)

The following screenshot, created the test_index_type_4 table,
specify the id as unique, then the id will automatically create a unique index.

 

 

 

 

2, the manual creation of a unique index (non-clustered index) The
following screenshot, created test_index_type5 table,
manually create a unique index, then the index type is unique index

 

 

3, manually created secondary index (non-clustered index) The
following screenshot, created test_index_type6 table,
that manually create an index (not specified unique), then the index type for the secondary index

 

4, the calculation of the column index, in the calculation of the column manually create the index (non-clustered index) The
following screenshot, created test_index_type7 table,

test_index_type7 there is a calculation column, after the completion of the calculation column in the calculation of the index,

 

to sum up:

Overall, MySQL several types of B + tree index is still relatively easy to understand, with the SQL Server index is also similar.
MySQL’s InnoDB engine table, the primary key index, non-null unique constraint generated by the clustered index, clustered index, from the physical storage point of view are data clustered index.
Primary key index, non-empty unique constraint generated clustered index, clustered index, the three have a distinct feature, all require that the column is non-empty and unique.
The other is that MySQL can not explicitly create a clustered index, that is, create clustered index.

This is very different from SQL Server,
1, in SQL Server, if you do not specify the primary key, or specify the primary key is not specified but nonclustered, then the table is for the heap table, the system will not add the default field as a clustered index
2 , SQL Server primary key can only be the primary key, you can not clustered index (by default the primary key is clustered index).

The clustered index can be specified on any column, either a non-primary key column, a non-unique, nullable, repeatable column, such as