Posts

Showing posts from March, 2018

Release 2: Contribution to open source project

Image
In release 2, we are asked to contribute to an open source project. I choose Brave browser to make some contributions. About this project, click my previous blog: https://qchen102.blogspot.ca/2018/03/brave-browser-for-laptop.html Build the Project It's easy to build the project. Download the package from Brave github. CD to browser-laptop. Then run several commands: 'npm install' 'npm run watch' 'npm start' Then the project is successfully built. Here is the interface of Brave: Using in my language After I installed it, I want to know if it supports in my language. So I set it to Chinese. It does suppot Chinese, but I found some of strings haven't been translated yet. Well, it's interesting to translate it. Translate.. I find all languages file are located in "app/browser/extensions/brave/locales". There're 26 folders. Each of them has different language. US English is in "en-US". Japa

Lab 5 Add feature in existing object

Image
In lab 5, we are going to add feature in existing object. It's a map web application provide bridge and troll data. Here's Github of project:  https://github.com/humphd/bridge-troll We are asked to add feature so that the colour of the map can change base on different time in day. Bright theme will be used in day time, while dark theme will be used in night time.  See more description here: https://github.com/humphd/bridge-troll/issues/6 So I fork the project to my github, git clone it to local laptop, use npm to install it and run it. The project run fine in my laptop without errors.  Then I start to change codes to make new feature. At the beginning, I need to find themes for map. One is bright and one is dark. I Google 'leaflet theme'. The first of the result is "Leaflet provider demo". I click inside the website, it provides many themes for us. It also provide the code for every theme. Amazing! Then I need to work in the codes. H

Brave browser for laptop

Image
Most users will choose Chrome, Firefox or Safari as daily use browser. They are fast, secure, lightweight software.  Brave web browser is another choice. It looks like a new baby in browser world. It's published in around 2 years. It's an open source project based on Chromium and its blink engine. The main purpose of this project is to block websites trackers and block advertisements. Brave browser wants to provide users a pure experiences to browse through websites. Brave browser supports multiple platforms. Those includes desktop systems like Windows, Mac, Linux and mobile system like Android and IOS. Brave browser is extremely fast. Here are videos of comparing other browsers to Brave. Brave vs Firefox: https://www.youtube.com/watch?v=Rv2clAj2C_c Brave vs Safari: https://www.youtube.com/watch?v=kHWf6hRV-GM For more comparing data, click in official websites: https://brave.com/index/ Since Brave is an open source project, it has a large community and lots of deve

Studying for open standard

Image
In recent couple of classes, we learned about the standard of programming world. There're thousands of programmers in the world. All of them have different coding style. Before a language become a "language", it needs a "standard" so that the language developers can design it with those standard rules. That's why Java looks like this and Javascript looks like that. But standard is not unchangeable. Programming world is developing fast. Many languages need to be upgrade too. In this lab, make "reverse" for example. Long time ago reverse is not a standard in Javascript language. Programmers want to reverse array so they designed this function and made it work without bug. They name it, use it again and again, fix all bugs they found. Then more and more programmers used it. Finally, it became standard in Javascript and many other language such as Java. One of the way to find bugs is to write a tester. In this lab, we will test ECMA262. ECMA262 is a