Transpiler

Summary ref A transpiler (also called source-to-source compiler or a transcompiler) is a program that translates a source code from a language to another at the same level of abstraction (which makes it different from a compiler whose output is lower level than its input).

1 min · Jaaved Khan

Serving React from Django

Summary Serving in Steps ref Install Babel, Transpiler npm install --save-dev @babel/core # install presets and plugins for react npm install --save-dev @babel/preset-env @babel/preset-react Create .babelrc file in the react root dir To use the installed presets and plugins # automatic is added to avoid react not found error "presets": [ "@babel/preset-env", ["@babel/preset-react", "runtime": "automatic"] ] install, Webpack Note: while following the tutorial webpack-bundle-tracker version 1....

2 min · Jaaved Khan

Serving React from Django

w :ID: 2b2b8f53-03a9-416a-9a63-9cd7199690b2 Summary Serving in Steps ref Install Babel, Transpiler npm install --save-dev @babel/core # install presets and plugins for react npm install --save-dev @babel/preset-env @babel/preset-react Create .babelrc file in the react root dir To use the installed presets and plugins # automatic is added to avoid react not found error "presets": [ "@babel/preset-env", ["@babel/preset-react", "runtime": "automatic"] ] install, Webpack Note: while following the tutorial webpack-bundle-tracker version 1....

2 min · Jaaved Khan

Enterprise Search

Summary An element in stack. APIs Search POST https://search-api.test.kfupm.edu.sa/api/as/v1/engines/test/search Content-Type: application/json Authorization: Bearer search-2e6t6s7egdqdpuxpgangpqjc "query": "search"

1 min · Jaaved Khan

DigitalOcean

Registry Logging in with docker login registry.digitalocean.com # then enter the token as both username and pasword # then docker tag heartexlabs/label-studio:latest registry.digitalocean.com/jak/label-studio # and then docker push registry.digitalocean.com/jak/label-studio doctl doctl is the official DigitalOcean command-line client. It uses the DigitalOcean API to provide access to most account and Droplet features. Install sudo snap install doctl To run doctl snap run doctl create an alias ~/.bash_aliases alias doctl="snap run doctl" Token Token can be created from the url, personal token generated from here is used to with “auth init” command....

3 min · Jaaved Khan

Solution Delivery Accomplishments in 2021-2022

accomplishments Digital payment system As part of digital transformation strategy and to provide online payment services to the KFUPM community and students, KFUPM payment gateway service was implemented. This has helped several departments to automate manual payment verification processes and helped students avoid unnecessary visits to the banks and KFUPM administration offices during the COVID-19 pandemic. The solution designed and implemented is generic to include the use cases of API and non-API to serve the B2C payment needs of KFUPM....

2 min · Jaaved Khan

MongoDB

Summary Salable nosql, schema less, database. Interacting with database with CLI, shell, using mongosh docker exec -it mongo mongosh # to see databases show dbs # to select one db use tfarraj-dev # to see tables show tabels # or show collection # to see table columns by priniting one record db.videos.findOne() Mongoose: object modeling Mongoose is an Object Data Modeling (ODM) library for MongoDB and Node.js. It manages relationships between data, provides schema validation, and is used to translate between objects in code and the representation of those objects in MongoDB....

2 min · Jaaved Khan

KFUPM

Summary University where I did my master’s from and worked for a very long time.

1 min · Jaaved Khan