Dualbooting windows and linux

Dual booting arch and win11 Prerequisites Before installing arch we need to do the following things Disk partition We’ll need to make a disk partition in windows 11 before proceeding to make sure both the OS run isolated, this can be done by the following steps Right-click on the Start menu and select Disk Management. Alternatively, you can press Win + X and choose Disk Management from the list. In the Disk Management window, locate the drive you want to partition (usually the C: drive). In my case I’ve installed in D drive on a separate disk Right-click on the drive and select Shrink Volume In the dialog that appears, enter the amount of space to shrink (in MB). This will be the size of the new partition for Arch Linux. Make sure to leave enough space for Windows. In my case I’ve allocated 100 gigs for Arch. Click Shrink. The unallocated space will appear in the Disk Management window. Bios settings Disable Fast Startup Disable secure boot Arch ISO setup Download arch ISO from the official site. Install a tool such as Rufus or Etcher and burn the ISO onto a USB drive. Booting onto Arch Insert the drive into the computer Restart the computer into the BIOS/UEFI/Bootloader menu Select the boot option as the USB drive Installing Arch (under progress) ...

July 7, 2024 · 6 min · 1257 words · Aum Pauskar

MongoDB

MongoDB Introduction NoSQL databases are non-relational databases that are used to store and retrieve data. MongoDB is a popular NoSQL database that is used to store data in the form of documents. Feature SQL (Relational Databases) NoSQL (Non-Relational Databases) Schema Fixed schema Dynamic schema for unstructured data Scalability Vertical scalability (scale-up by adding more powerful CPU, RAM, SSD) Horizontal scalability (scale-out by adding more servers) Complexity Tables with rows and columns, complex queries with JOINs Document, key-value, wide-column, or graph formats, simpler queries Transactions ACID properties (Atomicity, Consistency, Isolation, Durability) for reliable transactions BASE properties (Basically Available, Soft state, Eventual consistency) less strict than ACID Development Model Mature, with established standards More flexible and evolving rapidly Use Cases Well-suited for complex queries and transactions, e.g., banking systems Well-suited for hierarchical data storage, big data solutions, and real-time web applications Data Integrity High, due to ACID compliance Variable, depending on the specific NoSQL system and its configuration Query Language Structured Query Language (SQL) is standardized No standard; queries are based on the specific NoSQL database system (e.g., MongoDB uses BSON) Relationship Handling Efficient handling of relationships between entities Relationships can be handled, but often less efficiently than SQL databases; denormalization is commonly practiced Installation There are two ways of working with a mongoDB database, one is to run it locally on your machine and the other is to use a cloud service like MongoDB Atlas. For this tutorial, we will be using MongoDB with mongosh and compass installed. ...

June 27, 2024 · 4 min · 709 words · Aum Pauskar

Regex via lex and yacc

Regex via lex and yacc What is a regex? Regular expressions (regex) are patterns used to match character combinations in strings. In JavaScript, regular expressions are also objects. These patterns are used with the exec() and test() methods of RegExp, and with the match(), matchAll(), replace(), search(), and split() methods of String. Why use lex and yacc? Lex and yacc are tools used to generate lexical analyzers and parsers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in C. Yacc reads an input stream specifying the parser and outputs source code implementing the parser in C. Lex and yacc are tools used to generate lexical analyzers and parsers. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the lexer in C. Yacc reads an input stream specifying the parser and outputs source code implementing the parser in C. ...

June 6, 2024 · 5 min · 930 words · Aum Pauskar

Vim

Sr. No. Command Description 1 :q Quit 2 :q! Quit without saving 3 :w Save 4 :wq Save and quit 5 :wq! Save and quit without saving 6 :e Open file 7 :e! Discard changes 8 :e <filename> Open file 9 :e! <filename> Discard changes 10 :sp Split window horizontally 11 :vsp Split window vertically 12 :q Quit window 13 :tabnew Open new tab 14 :tabn Next tab 15 :tabp Previous tab 16 :tabc Close tab 17 :tabo Close other tabs 18 :tabm Move tab 19 :tabfirst First tab 20 :tablast Last tab 21 :tabe Edit tab 22 :tabfind Find tab 23 :tabclose Close tab 24 :tabonly Close other tabs 25 :tabmove Move tab 26 :tabnext Next tab 27 :tabprevious Previous tab 28 :tabedit Edit tab 29 :set number Show line numbers 30 :set nonumber Hide line numbers 31 :set relativenumber Show relative line numbers 32 :set norelativenumber Hide relative line numbers 33 :set list Show whitespace characters 34 :set nolist Hide whitespace characters 35 :set listchars=tab:>-,trail:. Set whitespace characters 36 :1 Go to line 1, may be changed by adding approprite number 37 :$ Go to last line 38 :! Run shell command, may be used to test program 38.1 ! gcc -o test test.c Compile C program 38.2 ! ./test Run C program 39 dd Delete line (copy in clipboard) 40 yy Copy line 41 p Paste line 42 u Undo 43 Ctrl + r Redo 44 Ctrl + w Delete word 45 Ctrl + u Delete line 46 Ctrl + y Scroll up 47 Ctrl + e Scroll down 48 Ctrl + f Page down 49 Ctrl + b Page up 50 Ctrl + d Half page down 51 Ctrl + u Half page up 52 Ctrl + o Go to previous location 53 Ctrl + i Go to next location 54 Ctrl + g Show file information 55 Ctrl + l Refresh screen 56 Ctrl + a Increment number 57 Ctrl + x Decrement number 58 Ctrl + v Enter visual block mode 59 v Enter visual mode 60 V Enter visual line mode 61 i Enter insert mode 62 a Enter insert mode after cursor 63 o Enter insert mode after line 64 O Enter insert mode before line 65 : Enter command mode 66 / Search forward 67 ? Search backward 68 n Next search result 69 N Previous search result 70 * Search word under cursor 71 esc Exit mode 72 gg Go to first line 73 G Go to last line

May 15, 2024 · 2 min · 419 words · Aum Pauskar

Using a plex server for media streaming

Using a plex server for media streaming What is a plex server? Plex is a client-server media player system and software suite comprising two main components. The Plex Media Server desktop application runs on Windows, macOS, and Linux-compatibles including some types of NAS devices. The server desktop application organizes video, audio, and photos from a user’s collections and from online services, enabling the players to access and stream the contents. ...

April 14, 2024 · 2 min · 341 words · Aum Pauskar