Posts

Showing posts with the label Open Source

Implementing Day/Night Mode in bridge-troll

Image
For this lab we were to contribute to the bridge-troll app and fix the issue-6.  This issue was the map didn't have a day/night feature.  This means while its dark outside the map would stay the same as it is during the day time which is very bright. Initially while working on the app it was very hard to get it working on a Windows environment. Due to this I had to use a Linux machine to fix the issue. As I was looking at solutions on how to get started on fixing the bug, I saw that in the issue description itself there was pretty much a solution given. This solution was to use suncalc which is an application that calculates the suns position and determines whether its dark or not.  This helped in figuring out the issue of what time the map should switch to the darker colored mode. The implementation of this code was fairly simple the below screenshots show the code added that checks the time. After checking the time the changing of the map was very simple....

ECMA Script Testing

Image
For this lab we looked at the ECMAscript test suite. Setting it up and making it run was fairly simple and I didn't encounter any issues.  I just followed the steps provided in https://github.com/bterlson/test262-harness#test262-harness While running the tests not all of them pass. I thought this might have been a Windows issue. Therefore I tried it on my Linux machine and majority of it worked except 6. Then we looked at the test cases for Array.prototype.reverse().  For the task of this lab I simply just rewrote some new test cases to check the array.reverse.  This was fairly simple as looking at the other test cases it gave a general idea on how to write test cases for this. The test case I wrote can be found here. https://gist.github.com/pranoy10/10fd4bbf04a7490567d527017c8d52df

Fixing bugs in vscode

    For Lab 3, our task was to tackle an issue/bug with vscode.  While tackling bugs one of the first things we had to accomplish was to recreate the bug on our machines.  Initially this seemed like a very easy task, follow the steps mentioned in the issue to create the bug and BAM! you got something to work with right? NO.  This was never the case with us.  We tackled the issues listed on the wiki page and wasn't able to recreate most of them.    We tried the colour picker issue #42720, this seemed like it was a fixed issue.  I wasn't able to recreate it on my Linux system and we also tried to create it on a Windows system with no success.  Then we tried the Opening .bat files issue #43302, this was also a fail as we couldn't get the issue to come up.  Then finally giving up on the list provided we ventured out into the 4000+ issues listed on the vscode GitHub.  We filtered for the labels good first issue and bug and found...

Assignment 1 - DPS909

   For this assignment, our task was to use Google's libphonenumber library and create a RESTful api web service which would get the phone numbers from a string that is provided and also from a file that is provided.  The initial task was to determine what language we want to use to achieve the final result.  For me, I went with JavaScript, as I have worked with JavaScript before and would require less effort to achieve the result.  So for this assignment I used Node.js which is a JavaScript run-time environment which allows the execution of JavaScript code on the server-side. Dependencies used with Node.js express google-libphonenumber multer body-parser mocha chai chai-http nodemon     Express is a framework that allows the creation of web applications for Node.js.  This specific framework is the most standard framework for Node.js, which helped in making the decision rather simple.  I also used the google-libphonenumber ...

Working is VS Code Source

    This is the first time I am actually using VSCode.  I always had a copy of it installed but never got to use it as I was used to using Sublime Text and it really fit my needs.  Last week as part of the Lab, I finally got around to using it and it seems like a great text editor.  As of right now I haven't installed a lot of extensions.  I only have the Chrome Debugger tool installed, since it looked like a good tool to debug our usual Javascript codes.     As I was going through the process of getting VSCode built from source I didn't really run into any issues.  Everything went smooth except for the part where I had to run the build.  For some reason it wouldn't let me do that from the terminal that was available in the VSCode.  The way I solved this issue was by just running it through the local Command Terminal.     Before last week I had never heard of Electron.  After looking into it I realized that I basi...

Introduction - DPS909

Hey fellow readers,     My name is Pranoy Santosh.  I was recommended to take this course by an acquaintance who took this course previously, and was informed that it provides a lot of information and insight on how to contribute to projects and the tech communities on the internet.     Today i would like to share with you an open-source framework known as Vue.js.  This is a progressive javascript framework mainly used in single page applications.  The project can be found at : https://github.com/vuejs/vue It provides tools for building user interfaces, and is very adoptable.  Depending on the use case requirement for the user its got very easy to use core library including another ecosystem of libraries to create these single pages applications.  The readability is also better in Vue.js.  It sort of implements the idea of Object Oriented Programming which is more familiar and easy to use.  Some more famous frameworks t...