Friday 4 September 2020

When CoronaVirus hits someone..

 



🙄🙄🙄😫

It was a joke huh..your IQ is 8000

Lenovo releases first Fedora Linux ThinkPad laptop

 Fedora, Red Hat's community Linux for developers, is finally available from a mainstream PC vendor, Lenovo.


For years, ThinkPads, first from IBM and then from Lenovo, were Linux users' top laptop pick. Then, in 2008 Lenovo turned its back on desktop Linux. Lenovo has seen the error of its ways. Today, for the first time in much too long, Lenovo has released a ThinkPad with a ready-to-run Linux. And, not just any Linux, but Red Hat's community Linux, Fedora.



Source : https://www.zdnet.com/google-amp/article/lenovo-releases-first-fedora-linux-thinkpad-laptop/

Xbox Series X tech will supercharge Windows 10 PCs — here's how

 

Xbox Series X storage tech is coming to Windows 10

(Image credit: Xbox)

While it may have 12 teraflops of graphics power, one of the best features of the Xbox Series X will be its speedy SSD storage that promises to eliminate game load times. And that feature is coming to Windows 10 PCs. 

Source : https://www.tomsguide.com/amp/news/xbox-series-x-tech-will-supercharge-windows-10-pcs-heres-how

United states test launches intercontinental ballistic missile.

The US has launched an unarmed Minuteman III intercontinental ballistic missile, equipped with a test reentry vehicle, from Vandenberg Air Force Base in California.


Source : 

Thursday 3 September 2020

what is robots.txt and how to make perfect robots.txt file.

web crawler first checks robots.txt file . 

robots.txt file gives information to web crawler about on what pages to crawl and on what pages not to crawl.

this saves so much time of web crawler so crawler can easily crawl your website.

and it optimizes SEO .

It makes your website easily available on search engine very fast.

you can add custom robots.txt in your website's code.

you can check your robots,txt file by just typing the URL   your website url/robots.txt/

Here is the explanation by Neil Patel.

https://neilpatel.com/blog/robots-txt/

pic : neilpatel.com

robots

Supreme Subset (1 D & Data Structures Practice Problems) | hackerearth

Wednesday 2 September 2020

Vowel Recognition Sum of vowels in all substrings of a string.#hackerearth | using prefix_sum | Python.. and in C++

 Natural Language Understanding is the subdomain of Natural Language Processing where people used to design AI based applications have ability to understand the human languages. HashInclude Speech Processing team has a project named Virtual Assistant. For this project they appointed you as a data engineer (who has good knowledge of creating clean datasets by writing efficient code). As a data engineer your first task is to make vowel recognition dataset. In this task you have to find the presence of vowels in all possible substrings of the given string. For each given string you have to print the total number of vowels.

Input First line contains an integer T, denoting the number of test cases. Each of the next lines contains a string, string contains both lower case and upper case . Output Print the vowel sum Answer for each test case should be printed in a new line. SAMPLE INPUT 1 baceb SAMPLE OUTPUT 16 Explanation First line is number of input string, In given example, string is "baceb" so the substrings will be like -"b, ba, bac, bace, a, ac, ace, aceb, c, ce, ceb, e, eb, baceb" now the number of vowels in each substring will be 0, 1, 1, 2, 1, 1, 2, 2, 0, 1, 1, 1, 1, 2 and the total number will be sum of all presence which is 16.


Here is the solution in python using prefix sum approach..this is my you tube chennal..



in C++ :

#include<bits/stdc++.h>
using namespace std;
int main() {
int t, arr[10] = {'A','E','I','O','U','a','e','i','o','u'},len;
long int count;
string s;
cin >> t;
while(t--) {
count = 0;
cin >> s;
len = s.length();
long int ps_arr[len]; int i=1;
ps_arr[0] = len;
while(i<len) {
ps_arr[i] = (len-i)+ps_arr[i-1]-i;
i++;
}
i = 0;
while(i<len) {
if(find(arr,arr+10,s.at(i)) != arr+10) {
count += ps_arr[i];
}
i++;
}
cout << count << "\n";
}
}

Friday 26 June 2020

Which Ubuntu 20.0 command , I use most of the time?? Guess??

I don't know what Error I am facing in Ubuntu 20.0 LTS , but most of the time my TouchPad Stops. I tried many commands , many settings and updated apps many times , but nothing worked , unless I find one command.

sudo modprobe -r psmouse

and then ,


sudo modprobe  psmouse

and touch pad starts again.

So I use this command a lot of time.

If you have any problem like this , please share and give the solution also.


Why I prefer Angular over React

Angular is a full framework whether React is a JavaScript centric library with speed in mind, but tends to be difficult for developers.

The Google-backed framework has risen to become the incumbent JavaScript framework of choice for building dynamic single page applications (SPAs) on the web.It uses various attributes and custom HTML elements to provide functionality on various Document Object Model (DOM) elements.

Angular can be used in many platforms :

Progressive Web Apps

Use modern web platform capabilities to deliver app-like experiences. High performance, offline, and zero-step installation.


Native

Build native mobile apps with strategies from Cordova, Ionic, or NativeScript.


Desktop

Create desktop-installed apps across Mac, Windows, and Linux using the same Angular methods you've learned for the web plus the ability to access native OS APIs.



Speed and Performance



Code Generation

Angular turns your templates into code that's highly optimized for today's JavaScript virtual machines, giving you all the benefits of hand-written code with the productivity of a framework.



Universal

Serve the first view of your application on Node.js®, .NET, PHP, and other servers for near-instant rendering in just HTML and CSS. Also paves the way for sites that optimize for SEO.


Code Splitting

Angular apps load quickly with the new Component Router, which delivers automatic code-splitting so users only load code required to render the view they request.


                 Productivity


Templates

Quickly create UI views with simple and powerful template syntax.


Angular CLI

Command line tools: start building fast, add components and tests, then instantly deploy.


IDEs

Get intelligent code completion, instant errors, and other feedback in popular editors and IDEs.


Testing

With Karma for unit tests, you can know if you've broken things every time you save. And Protractor makes your scenario tests run faster and in a stable manner.


Animation

Create high-performance, complex choreographies and animation timelines with very little code through Angular's intuitive API.


Accessibility

Create accessible applications with ARIA-enabled components, developer guides, and built-in a11y test infrastructure.



Source : angular.io

Why is Python simplest language and very good for competitive programming

I have done code in many languages but python is simplest :

In java the syntax in very lengthy. T write a small program in java you have to write a lot of code and it is very complicated also.

In c it becomes more difficult to write large programs because in c there are very few  built in libraries.

Example : to use string in program you have to declare many thin like pointers and array.


But Python is slow :

Yes , python is slower than C and Java But it does not affect much until you are highly professional coder and until you have to think a lot about speed.




In Competitive programming

now a days i am using python because i can write code fast as well as it is very simple.



So , Good Luck , and use language with is most suitable for you

Business Ideas

Here are some best businesses to do after lockdown :

1. Create your own Blog and earn money using advertising.

2. Be a Software or Website Freelancer.

3. Create your own youtube channel and add your friends in your team.

4, Create a android app ..at least try



Good Luck

Monday 22 June 2020

Connect computing with biology


Source : Moleculargenetics.it

Bio computers use systems of biologically derived molecules—such as DNA and proteins—to perform computational calculations involving storing, retrieving, and processing data.

The development of biocomputers has been made possible by the expanding new science of nanobiotechnology. The term nanobiotechnology can be defined in multiple ways; in a more general sense, nanobiotechnology can be defined as any type of technology that uses both nano-scale materials (i.e. materials having characteristic dimensions of 1-100 nanometers) and biologically based materials.[1] A more restrictive definition views nanobiotechnology more specifically as the design and engineering of proteins that can then be assembled into larger, functional structures[2][3] The implementation of nanobiotechnology, as defined in this narrower sense, provides scientists with the ability to engineer biomolecular systems specifically so that they interact in a fashion that can ultimately result in the computational functionality of a computer.

Source : Wikipedia








This picture depicts life in a Graph.


if you are spending your life like this picture . Then believe it or not you are in someone other's control.


Try these sites once in your life

1. Interested in math , just go here.


2.Don't believe on anything . just verify it in best research site.


3. Having good taste of music :
    

Saturday 20 June 2020

My 3 favourite Books..you should read these books.




Rich Dad Poor Dad is a 1997 book written by Robert Kiyosaki and Sharon Lechter. It advocates the importance of financial literacy (financial education), financial independence and building wealth through investing in assets, real estate investing, starting and owning businesses, as well as increasing one's financial intelligence (financial IQ) to improve one's business and financial aptitude. Robert Kiyosaki followed the book with Rich Dad's Cashflow Quadrant and Rich Dad's Guide to Investing. He has at least a dozen books published.  



The Subtle Art of Not Giving a Fuck: A Counterintuitive Approach to Living a Good Life is the second book by blogger and author Mark Manson.[1] In it Manson argues that life's struggles give it meaning, and that the mindless positivity of typical self-help books is neither practical nor helpful. It was a bestseller.



The Monk Who Sold His Ferrari is a self-help book by Robin Sharma, a writer and motivational speaker. The book is a business fable derived from Sharma's personal experiences after leaving his career as a litigation lawyer at the age of 25.

Covid 19 tracking app will be automatically downloaded on your phone.

https://www.dailypost.co.uk/news/uk-world-news/covid-19-tracking-app-software-18458500.amp


Pic source : dailypost.co.uk

Future of the windows subsystem for Linux.

https://www.thurrott.com/windows/windows-10/236646/the-future-of-the-windows-subsystem-for-linux



Pic : howtogeek.com


Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables (in ELF format) natively on Windows 10 and Windows Server 2019.

Sunday 17 May 2020

Codeforces Round #643 (Div. 2) : C. Count Triangles : Solution in python

C. Count Triangles

time limit per test
1 second

memory limit per test
256 megabytes

input
standard input

output
standard output

Like any unknown mathematician, Yuri has favourite numbers:

, , , and , where . Yuri also likes triangles and once he thought: how many non-degenerate triangles with integer sides , , and exist, such that

holds?

Yuri is preparing problems for a new contest now, so he is very busy. That's why he asked you to calculate the number of triangles with described property.

The triangle is called non-degenerate if and only if its vertices are not collinear.

Input

The first line contains four integers:

, , and (

) — Yuri's favourite numbers.

Output

Print the number of non-degenerate triangles with integer sides

, , and such that the inequality

holds.

Examples
Input
Copy
1 2 3 4
Output
Copy
4
Input
Copy
1 2 2 5
Output
Copy
3
Input
Copy
500000 500000 500000 500000
Output
Copy
1
Note

In the first example Yuri can make up triangles with sides

, , and

.

In the second example Yuri can make up triangles with sides

, and

.

In the third example Yuri can make up only one equilateral triangle with sides equal to

.



Solution in Python :


l = [int(i) for i in input().split()]

length = len(l)
count = 0
for a in range(l[0] , l[1]+1) :
    for b in range(l[1],l[2]+1) :
        for c in range(l[2] ,l[3]+1) :
                 if a+b > c and b+c > a and c+a > b :
                    count += 1
print(count)