Posts

Flutter Native Application Development

DAY 1 Language: Dart Dart has a great declarative approach Bespoke-Ability to modify Android - Java/Kotlin Windows- C# iOS- Objective C/Swift Cross-Platform Native App Microsoft-  Xamarin Facebook- React Native Google - Flutter Setup and Start https://flutter.dev/docs/get-started/codelab DAY 2

SINGLE LOOP SORTING TECHNIQUE

#include <bits/stdc++.h> using namespace std; int main() {     int i,n,num,temp,til;     vector<int> a;     cin>>n;     for(i=0;i<n;i++)     {         cin>>num;         a.push_back(num);     }     til=n;     for(i=0;i<til-1;i++)     {         if(a[i]>a[i+1])         {             temp=a[i];             a[i]=a[i+1];             a[i+1]=temp;         }         if(i==til-2)         {             for(i=0;i<n;i++) ...

SECOND MAXIMUM COCUBES

#include<bits/stdc++.h> using namespace std; int secmax(int a,int b,int c) { int max,smax; if(a>b && a>c) { if(b>c) smax=b; else smax=c; } else if(b>a && b>c) { if(a>c) smax=a; else smax=c; } else { if(a>b) smax=a; else smax=b; } return smax; } int main() {  int a,b,c;  cin>>a>>b>>c;  cout<<secmax(a,b,c);  return 0; }

REVERSE ARRAY COCUBES

#include<bits/stdc++.h> using namespace std; void swap(int *a,int *b) { int *temp; temp=a; a=b; b=temp; } int main() {  string line;  int i=0,r,len;  vector<int> a;  getline(cin,line);  istringstream iss(line);  while(iss>>r)  {   a.push_back(r);  }  len=a.size();  for(i=0;i<len/2;i++)  {   swap(a[i],a[len-i-1]);  }  for(i=0;i<len;i++)   cout<<a[i]<<" ";  return 0; }

HOW TO TAKE INPUT TILL NEWLINE

#include<bits/stdc++.h> using namespace std; int main() {  string line;  int i=0,r;  vector<int> a;  getline(cin,line);  istringstream iss(line);  while(iss>>r)  {   a.push_back(r);  }  for(i=0;i<a.size();i++)   cout<<a[i]<<" ";  return 0; }

USING SSHFS

SSHFS   is  the file system  which is generally used to mount  directories remotely using  secure shell protocol. Note:   First of all make sure that you have installed ssh server on your system from where you want to mount filesystem. On server  side : Step 1:      Install  the  software  [root@localhost]# yum  install openssh-server  -y Step 2:     Start  the  service  [root@localhost ~]#  service  sshd   restart On  client  Side :  Step  1 :      Install  the software for client side [root@localhost ~]# yum  install  fuse-sshfs        #  For   redhat / centos For  Ubuntu /Debian [root@localhost ~]# apt-get   install  sshfs Step  2:    For  mounting [root@localhost ~]#  mkdir   /mnt/new [root@localhost ~]#...

HOW TO USE DOCKER

To start  with Dockers: Installation of Docker   On linux based system: ---------------------- Note:   we are using  Redhat 7.1 / centos 7.1 A)  installing  docker and its dependencies  ================================ [root@localhost ~]# yum  install  docker  docker-selinux  -y  Starting and enabling service [root@localhost ~]# systemctl  restart   docker [root@localhost ~]# systemctl  enable   docker [root@localhost ~]# systemctl  status   docker docker.service - Docker Application Container Engine    Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled)    Active: active (running) since Thu 2017-10-07 22:46:00 IST; 5s ago      Docs: http://docs.docker.com  Main PID: 11000 (docker)    CGroup: /system.slice/docker.service            └─11000 /usr/bin/docker daemon --se...