cover photo

BLOG · 16/9/2023

General tasks

Mathew Abe
Mathew Abe
OP
General tasks
This Article is yet to be approved by a Coordinator.

Task 1: WORKING WITH GIT-HUB\n---\n
\n\nFamiliarize yourself with GitHub integrated workflows (GitHub actions), Issues, and pull requests\nwith this task. Given below is a git repository, go check it out and then perform the necessary tasks stated in the readme file.\nThe main branch of this repository has an error and is failing tests. Your job is to open a pull request proposing to fix the issue.\n\n\nSteps involved: \\n\\n1. Fork the repository: Go to the repository's main page and click the \Fork" button in the top right corner. This will create a copy of the repository in your own GitHub account.\n\n\\n2. Clone the repository: Clone the repository to your local machine using the git clone command.\n\n$ git clone https://github.com/< YOUR-USERNAME>/< name of fork>\n\n3. Create a new branch: Use the git branch command to create a new branch for your changes. Make sure to give it a descriptive name that reflects the changes you'll be making. For example, fix-bug-xyz.\n\ngit branch\n\n\\n4. Make your changes: Navigate to the files where the error is occurring and make the necessary changes.\\n\\n5. Commit your changes: Use the git commit command to commit your changes to your local branch. Make sure to include a descriptive commit message that explains what changes you made.\n\ngit commit -m \"a short description of the change\"\n\n\\n6. Push your changes: Use the git push command to push your changes to the branch in your forked repository.\n\ngit push\n\n\\n7. Open a pull request: Go to the original repository's page on GitHub and click the "New pull request" button. Select your forked repository and branch, and write a detailed description of the changes you made.\n\ngit pull\n\n\nimage\n\n\n
\n\n\n# Task 2: Get familiar with the command line on ubuntu\n---\n
\n\nWhat is Ubuntu?\n\nUbuntu is a popular free and open-source Linux-based operating system you can use on a computer or virtual private server.\n\nSteps involved\\n\\nCreate a folder - Use command- \n\n> mkdir < name of folder > \n> \ncd into that folder -\n\n> cd < name of the folder >\n>\n\nCreating a folder -\n> touch < name of the file >\n>\nCreate 2600 new files into this file\n> mkdir {a..z} {0..9} {0..9}\n>\nNow list all the 2600 files\n> ls \n>\nImage\n\nImage\n\nnow concatentate two text files and list.\n\n> echo "< text content-1 >" >> f1\n echo "< text content-2 >" >> f2\n cat f1 f2 > f3 \n>\n
\n\n\n# Task 3: Working with an API\n---\n
\n\nWhat is an API?\n
\n\n\nAPI stands for Application Programming Interface. In the context of APIs, the word Application refers to any software with a distinct function. Interface can be thought of as a contract of service between two applications. This contract defines how the two communicate with each other using requests and responses.\n

\n Made a real time AQI Monitor
\n\nStep 1: Used rapidapi to get an api\n\nStep 2: Copy all the details of the code in css including the API key\n\nStep 3: Using css, make the required adjustemts to the webite, such as:\n
\ni. Border thickness\n\nii. Background contrast, width (the background image can be inserted by taking any suitable image from the internet and pasting the ur in the code.\n\nImage\niii. edit the fonts of header and title \n\n{\n font-family: \'Subway Ticker\', sans-serif;\n \n font-size: 350%;\n text-align: center;\n color: #fff;\n text-shadow: 4px 4px #02032e;\n}\n\n>If a different font is used, make sure to download it in your local device and then past the url of the font in the code.\n>\n>\nthe postion of the AQI table (width , percentage sizes)\n>\n\nposition: relative;\n position: 70% 10%;\n font-family: \'Work Sans\', sans-serif;\n font-size: 150%;\n color: #fff;\n text-shadow: 1px 1px #666;\n}\n.table-container {\n display: inline-block;\n margin: 0 10px;\n vertical-align: top;\n width: 45%;\n \n\n- Use border collapse or seperate. My case I have used collapse.\n\ntable {\n border-collapse: collapse;\n width: 100%;\n background-color: #25232381;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n}\n\n\nStep 4: Use a script to fetch the api and display it\n

\nimage\n\nC:\Users\Mathew Local\OneDrive\Desktop\wheather api.html\n\n

\n\n\n# Task 4: Writing a resource article using markdown language\n---\n
\n\nWrote a resource blog using markdown language. Markdown is a lightweight markup language . Writing this article helped me to explore the various features markdown has such as inserting an image , video , gif. The link to me blog is given below \n\nLink to my blog\n\n\n\n\n# Task 5: 3-D Printing\n---\n
\n\nUnderstand the working of a 3D printer, i.e., what's an STL file, and then learn to slice it (using ultimaker or creality slicer). Learn about bed temperature, infill density and other printer settings. Finally get an STL file from the internet, and slice it and put it for print.\n\n\nProcedure:\n\n 1 . Go to thingiverse.com and search for the model that you want to print.\n
\n 2 . After selecting the model, Click on 'collect thing' and that generates an STL file.\n\n
\n\n 3 . Then we go ahead and slice it, using creality slicer.\nI had attempted to make a key- chain, so had to make a loop to hang the key.\n This loop was done in fusion (cad) \n
\n\n 4 . After slicing and other modification we are directed to a page which shows the approximate time required to print the 3D model.\n\n
\n\n 5 . Copy that link on to an SD card and remove the SD card from the computer.\n
\n\n 6 . Insert the sd card into the slot of the 3d printer and press start.\n
\n\n 7 . The extruder heats up to 200-220 degree celsius and bed heats up to 50-60 degree celsius.\nThis heat is to melt the PLA which inturn makes it easier to make the object.\n
\n\n 8 . After heating, we can see the 3D printer print out model layer by layer, intricately.\nimage\n\n
\n\n# Task 6 - Soldering prerequisites\n---\n
\n\nSoldering Equipment:\n\nSoldering is a process of joining two metal components together using a molten metal alloy known as solder. The following are the general steps involved in the soldering procedure:\n\n\n- If the perf board is full, desolder it by using a desoldering wick.\n\n\n\n1 . Select the right tools and materials: To begin with, ensure that you have the right tools and materials for the job. These include a soldering iron, solder wire, flux, cleaning materials, and safety equipment such as gloves and safety glasses.\n\n\n2 . Prepare the surfaces: The surfaces that need to be soldered should be cleaned and prepped to ensure a good bond. Use a cleaning material such as sandpaper, wire brush, or a cleaning agent to remove any rust, dirt, or debris.\n\n\n3 . Apply flux: Apply a small amount of flux on the joint surfaces to be soldered. Flux helps to remove any oxidation and contamination that may be present on the surfaces, allowing the solder to flow and bond properly.\n\n\n4 . Heat the surfaces: Using a soldering iron, heat the joint surfaces to the appropriate temperature. The temperature required depends on the type of metal being soldered and the type of solder being used.\n\n\n5 . Apply solder: Once the surfaces are heated, apply a small amount of solder wire to the joint. The solder will melt and flow onto the joint surfaces, forming a bond.\n\n\n6 . Allow to cool: Allow the joint to cool before moving or handling it. This will give the solder time to solidify and bond the surfaces together.\n\n\n7 . Clean the joint: Once the joint has cooled, use a cleaning material such as a brush or cloth to remove any excess flux or solder.\n\n\n\n\n\n\n# TASK 7: K- MAPS - To simulate a burglar alarm using TinkerCAD\n---\n\nDescription: For 4 cases, based on door lock/open and key pressed/not pressed. Determine the\nkarnaugh map and make a burglar alarm using simple logic circuits. The buzzer or led blinks\nwhen certain conditions are met, you can use push buttons for the door and key.\n\n\nIf Door opened = 0 and Door closed is 1; \n\nIf button pressed = 1 and button not pressed is 0;\n\n|A (Door ) |B (button) | Output |\n| --- | --- | --- |\n| 0 | 1 | 0 |\n| 0 | 0 | 1|\n| 1 | 1 | 0 |\n| 1 | 0 | 0 |\n\n\nSo the underlying logic is that the buzzer must ring when both the door is opened and the alarm is not pressed. i.e., 0 and 0 case.\n\nOnly a NOR gate gives the necessary output of 1 when both the inputs are 0.\nWe therfore use a seperate combination of a OR gate and a NOT gate to make the alarm.\n\n## Using tinkerCAD for the Circuit Simulation\n**********************\n\n\n- Take an quad-core 74HC32 for OR gate and an 74HC04 for NOT gate and connect them in series to form a NOR gate. \n- Give the Regulated Power Supply and ground all the necessary components.\n- Take 2 slideswitches to replace the input as door and button respectively. Connect them as input to the OR gate.\n- Connect the output of the entire NOR gate to the LED alarm which will light only when the buglur comes.\n\n- Test out all the input conditions and verify its working.\n- The correct working simulation is given below.\n\nImage\n\n\n\n- Link to Burglar alarm simulation\n**********************\n\n# Task 8 - TinkerCAD - Simulating an ultrasonic Sensor\n---\n\n\n\n\n\nCreate a tinkercad account, get familiar with the application, understand the example circuits given and simulate the following using ultrasonic/infrared sensors, estimate the distance between an obstacle and the sensor. Display the results on a LCD screen. \n\n## Steps involved\n\n#### Step 1: Components Required:\n- Arduino Uno \n- R3 board\n- Ultrasonic sensor (HC-SR04)\n- 16×2 LCD I2C Display\n- Jumper Wires\n#### Step 2: Connect the Echo pin of the sensor to the D2 pin of the Arduino.\n#### Step 3: Connect the Trig pin of the sensor to the D3 pin of the Arduino.\n#### Step 4: Navigate to Tools and select board and port.\n#### Step 5: Verify and compile the code, then upload the code to the Arduino Uno R3 board.\n#### Step 6: Monitor the output in the Serial monitor\n\n#### Skematic Diagram\nUltrasonic sensor\n\n\nLink to Simulation of the circuit\n\n# Task 9 - Certificate of taking part in a technical event.\n---\n\n\nTook part in Impetus 23.0 in the graphic design team and deco volunteer \n\n# Task 10 - Working with Pandas and Matplotlib:.\n---\n\nUsing pandas and matplotlib, and a dataset of your choice, plot a line graph, bar graph, and\nscatter plot.\n\n\n- To plot a line graph \n\nimport matplotlib.pyplot as plt\nplt.plot([1, 2, 3, 4])\nplt.ylabel(\'some numbers\')\nplt.show()\n\nline graph\n\n\n\n- To plot a bar graph\nbar graph\n\n\n\n\nimport matplotlib.pyplot as plt\nimport pandas as pd\nplotdata = pd.DataFrame({\n \"2018\":[5 6 7 83 \n \"2019\":[6 7 8 79 \n \"2020\":[7 7 8 85] \n index=[\"Django\", \"Gafur\", \"Tommy\", \"Ronnie\"])\nplotdata.plot(kind=\'bar\', stacked=Tru figsize=(15, 8))\n\nplt.title(\"FIFA ratings\")\n\nplt.xlabel(\"Footballer\")\n\nplt.ylabel(\"Ratings\")\nplt.show()\n\n\n\nTo plot a 3D Interactive scatter plot \n\nscatter plot\n\n\n\nLink to my repository"

UVCE,
K. R Circle,
Bengaluru 01