Friday 18 September 2020

Add Guna to C sharp

 Use this library to make attractive GUI with less efforts.

Use Graphs, Gifs, more Components  





Guna for C sharp


Wednesday 16 September 2020

Thursday 10 September 2020

C# in Linux

 1. Install Rider from JET BRAINS Official Website 

2. Install Mono

sudo apt install gnupg ca-certificates

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list sudo apt updatesudo apt install mono-devel


Angular Installation ERROR

Command for installing Angular CLI

npm install -g @angular/cli


If you find Error :

npm ERR! **Unexpected end of JSON input while parsing near '...nt-webpack-plugin":"0'**

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\user_name\AppData\Roaming\npm-cache\_logs\2017-12-06T13_10_10_729Z-debug.log

then 

Open Windows Powershell as admin


npm cache clean --force

npm install -g @angular/cli



Wednesday 9 September 2020

Sq-lite for Linux

Commands for Installing Sq-Lite 

Sudo apt-get install sqlite3

sudo apt-get install sqlitebrowser

Tuesday 1 September 2020

Program to Remove Linux permission on partitions

1. Install c++ in linux

2. Copy and paste the code then save with cpp extension.

3. write "g++ filename.cpp -o program"

4. write "./program"


then enter the partition sda number you want to remove permissions  


 #include<iostream>

#include "stdlib.h"

using namespace std;

int main()

{

    string  = "AbdulHaseeb.program.to.remove.linux.permission.";

  string message = "please enter the sda number to remove permissions";

  string number_sda = "";

  bool run = true;

  while(run)

  {

    cout<<message<<endl;

    cout<<"write 0 for exit"<<endl;

    string commond_1 = "sudo fsck -f /dev/sda";

    string commond_2 = "sudo ntfsfix /dev/sda";

    cin>>number_sda;

    if(number_sda=="0")

      break;

    commond_1+=number_sda;

    commond_2+=number_sda;


    char cmd_1[commond_1.length()];

    char cmd_2[commond_2.length()];

    for(int i=0; i<=commond_1.length(); i++)

    {

      cmd_1[i] = commond_1[i];

    }

    for(int i=0; i<=commond_2.length(); i++)

    {

      cmd_2[i] = commond_2[i];

    }

    system (cmd_1);

    system (cmd_2);

  }

}