Skip to content

Instantly share code, notes, and snippets.

View Rubix982's full-sized avatar
🇵🇰

Saif Ul Islam Rubix982

🇵🇰
View GitHub Profile
/* ------------------------- Question 1 ------------------------- */
> use HOTEL
switched to db HOTEL
> dbs
2020-12-12T11:42:52.660+0500 E QUERY [thread1] ReferenceError: dbs is not defined :
@(shell):1:1
> show dbs
admin 0.000GB
config 0.000GB
local 0.000GB
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
// Initialize the MPI environment
MPI_Init(NULL, NULL);
// Get the number of processes
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
@Rubix982
Rubix982 / sumArrayMPI.c
Created November 7, 2020 08:27
Program in MPI to sum an array
#include <mpich/mpi.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
// size of array
#define n 10
int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
Setting:
Company going through COVID 19, less sales, less resouces, less expandability options.
The company deals with Transportation And Warehousing.
Company has these departments, with 7 people overall, including the RM, FP, HRP,
- Management, 1
- Human Resources, 2
- Financial Department, 2
- Technical / IT, 1
@Rubix982
Rubix982 / DDL_For_DB_Project.txt
Created October 31, 2020 14:22
Just a simple DDL for MySQL
CREATE TABLE `User + User Registration Info` (
`User_Id` NUMBER,
`Joined Website` DATETIME,
`Handler` VARCHAR(40),
`first_name` VARCHAR(20),
`middle_name` VARCHAR(20),
`last_name` VARCHAR(20),
`Email` VARCHAR(30),
`Password` VARCHAR(30),
PRIMARY KEY (`User Id`)
  • OS Concepts
    • Process vs Threads
    • Serial vs Parallel Execution
    • Singlge vs Multithreading Process
  • Parallel Computing
    • Computational Problem
    • Applications
    • Why?
    • Limitations Of Serial Computing
  • Amdahl's Law
@Rubix982
Rubix982 / pthread-fail-logs.log
Created September 14, 2020 09:06
pthread failing, not sure why, related stack overflow question here,
Size of arrays, given as 100.
[ARRAY_A] Time taken to get the array, 5e-06
[ARRAY_B] Time taken to get the array, 2e-06
[ARRAY_C] Time taken to get the array, 2e-06
Overall time taken to generate arrays, 9e-06.
-------------
USING SERIAL:
Overall time taken, using insertion sort - serial, 2e-06.
There was an error in your GraphQL query:
Cannot query field "codeinjection_head" on type "GhostSettings".
If you don't expect "codeinjection_head" to exist on the type "GhostSettings" it is most likely a typo.
However, if you expect "codeinjection_head" to exist there are a couple of solutions to common problems:
- If you added a new data source and/or changed something inside gatsby-node.js/gatsby-config.js, please try a restart of your development server
- The field might be accessible in another subfield, please try your query in GraphiQL and use the GraphiQL explorer to see which fields you can query and what shape they have
- You want to optionally use your field "codeinjection_head" and right now it is not used anywhere. Therefore Gatsby can't infer the type and add it to the GraphQL schema. A quick fix is to add a least one entry with that field ("dummy content")
@Rubix982
Rubix982 / stochastic-gradient-descent-rate-and-momentum.ipynb
Created May 12, 2020 16:01
Stochastic Gradient Descent - Rate And Momentum
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.