This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>File Info</title> | |
</head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to open a file | |
<code> vim FILE_NAME </code> | |
start writing: | |
press<code>i</code> | |
after opening the file the commands appear at the bottom of the terminal | |
do not write commands inside the file. | |
press ESC to exit the writing mode, press i again to write current file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
why main method is static? | |
Java main() method is always static, | |
so that compiler can call it without the | |
creation of an object or before the creation of an object of the class. ... So, the compiler needs to call the main() method. If the main() is allowed to be non-static, then while calling the main() method JVM has to instantiate its clas |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Used alongside a WHERE clause as a shorthand for multiple OR conditions. | |
So instead of: | |
SELECT * FROM users | |
WHERE country = 'USA' OR country = 'United Kingdom' OR | |
country = 'Russia' OR country = 'Australia'; | |
You can use: | |
SELECT * FROM users |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Postgres is an object-relational database, while MySQL is a purely relational database. Postgres also adheres more closely to SQL . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# connecting with phpmyadmin(apache,mysql) mysql database using python | |
# Its working.. | |
# pip install pymysql | |
import pymysql | |
connection = pymysql.connect( | |
host = "localhost", | |
user = "root", | |
passwd = "", | |
database = "ws_test" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go to C:\Windows\SoftwareDistribution\Download> | |
Select all the cache files and delete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The CAP theorem[Apache Cassandra] | |
- [CAP] : Consistent, Available, Partition Tolerant | |
- A Distributed Database like Cassandra cannot be Consistent, cannot be Available,cannot be PartitionTolerant at the same time. | |
- They Do not overlap eachother. | |
- Consistent : data being available at time needed. | |
- Availability : every non-failing node returns a response to any read/write request in a reasonable period of time. | |
- Partition Tolerant : The system will continue to function even during a network partition or a failure. | |
So based on CAP theorem we two of these attributes at the same time. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Creating account in web3.js | |
create in cli | |
" web3.eth.accounts.create() " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create zip folder in terminal | |
zip -r [name of the zip folder you want] file, folder | |
eg. zip -r test text.1, music | |
it creates a folder named 'test.zip' and upload the file 'text.1' | |
and folder 'music' into test.zip | |
test.zip/ | |
text.1 | |
music/ |
OlderNewer