When it is required to extract strings which have successive alphabets in alphabetical order, a simple iteration, and the ‘ord’ method for Unicode representation is used.ExampleBelow is a demonstration of the same −my_list = ["python", 'is', 'cool', 'hi', 'Will', 'How'] print("The list is :") print(my_list) my_result = [] for element in my_list: for index in range(len(element) - 1): if ord(element[index]) == ord(element[index + 1]) - 1: my_result.append(element) break print("The result ... Read More
When it is required to extract words starting with vowel from a list, a simple iteration, a flag value and the ‘startswith’ method are used.Below is a demonstration of the same −Example:my_list = ["abc", "phy", "and", "okay", "educate", "learn", "code"] print("The list is :") print(my_list) my_result = [] my_vowel = "aeiou" print("The vowels are ") print(my_vowel) for index in my_list: my_flag = False for element in my_vowel: if index.startswith(element): my_flag = True ... Read More
The java.text.SimpleDateFormat class is used to format and parse a string to date and date to string.One of the constructors of this class accepts a String value representing the desired date format and creates SimpleDateFormat object.To format milli seconds to date −Create the format string as dd MMM yyyy HH:mm:ss:SSS Z.The Date class constructor accepts a long value representing the milliseconds as a parameter and creates a date object.Finally format the date object using the format() method.Exampleimport java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Sample { public static void main(String args[]) throws ParseException { ... Read More
When it is required to print rows where all its elements’ frequency is greater than K, a method is defined that takes two parameters, and uses ‘all’ operator and iteration to give the result.Below is a demonstration of the same −Exampledef frequency_greater_K(row, K) : return all(row.count(element) > K for element in row) my_list = [[11, 11, 32, 43, 12, 23], [42, 14, 55, 62, 16], [11, 11, 11, 11], [42, 54, 61, 18]] print("The tuple is :") print(my_list) K = 1 print("The value of K is :") print(K) my_result = [row for row in my_list if frequency_greater_K(row, ... Read More
When it is required to repeat elements at custom indices, a simple iteration, enumerate attribute, the ‘extend’ method and the ‘append’ method are used.Below is a demonstration of the same −Examplemy_list = [34, 56, 77, 23, 31, 29, 62, 99] print("The list is :") print(my_list) index_list = [3, 1, 4, 6] my_result = [] for index, element in enumerate(my_list): if index in index_list: my_result.extend([element, element]) else : my_result.append(element) print("The result is :") print(my_result)OutputThe list is : [34, 56, 77, 23, 31, 29, ... Read More
Bluetooth is a service that helps in sharing data between multiple devices. We communicate with our computers or any other mobile devices with the help of Bluetooth. Also, it allows us to have a conversation without wires. Nowadays, Bluetooth wireless earphones are there that you can use to listen to music and for discussions. The only problem with these Bluetooth devices is that they have their specific range connected with other devices.BluejackingBluejacking works in a similar way to that of Bluetooth. It is used for sending unlicensed messages to the other Bluetooth device. Bluetooth is the shortrange wireless technology for ... Read More
What is Gossip Protocol?Gossip protocol is a computer peer-to-peer communication mechanism or process based on how epidemics spread. To ensure that data is distributed to all group members, several distributed systems use peerto-peer gossip. Since some ad-hoc networks lack a central registry, the only method to disseminate shared data is for each member to pass it on to their neighbors.Because gossip conveys information just like how a virus spreads in a biological community, the phrase "epidemic protocol" is frequently used interchangeably with the gossip protocol.Periodic, paired inter-process interactions are at the heart of the protocol. The amount of data transferred ... Read More
Excel and Tableau are two convenient tools for the development, storage, and analysis of your data.Microsoft ExcelMicrosoft Excel is a spreadsheet application used for calculations, statistical operations, data analysis, and outlining. Excel spreadsheets are electronics worksheets that show data in tabular forms, with rows and columns. Data is kept in cells. Also, you can create graphs, charts, or presentations to highlight a specific intuition.TableauTableau is a business intelligence tool to get perception from details, find the trends, and make the business choice. Tableau can easily format data in the graphical view to mark the patterns and relations between the informative ... Read More
Wireless data operations are expected to increase at an average of 100-200 percent per year, and the mobile communications industry agrees that it will be the cornerstone of the future business. People enjoy the benefits of non-voice services, as evidenced by the massive success of short messaging in many countries.EDGE (Enhanced Data Rate for GSM Evolution)EDGE allows for a faster transmission rate than standard GSM. It makes use of a backward-compatible GSM digital mobile technology extension. EDGE employs part of the ITU's 3G standard and has a pre-3G radio technology. With the proper modifications, it can work on any GPRS ... Read More
Google DriveGoogle Drive is a file hosting service provided by Google. It was launched on April 24, 2012. It allows users to store files in the cloud, sync files across devices, and share files.In addition to a web interface, Google Drive has Apps for most devices that can be used offline.Google Drive doesn't only help you save files, it also serves as a central location for all of your Google activities.Google's whole ecosystem of products, including its G Suite of office apps, is compatible with the Drive. So, chances are most people on the Internet already have a Google Drive ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP