Skip to main content

Posts

The Role of Organizational Leaders in Post COVID-19 Crisis Management Through Corporate Governance Practices in Finance Industry of Sri Lanka

    Figure 1: Designed by 8photo / Freepik COVID-19 has generated significant uncertainty and high inconsistency in the capital markets in almost all the countries and the impact it caused thus far is yet to be determined. As with the spread of the virus, adverse impacts are likely to continue. Political leaders around the world consider COVID-19 is the biggest challenge they confront since World War II (Allam, 2020). To mitigate the impact, governments and central banks responded to the economic crisis with both fiscal and monetary tools in remarkably high degrees (Benmelech and Tzur-Ilan, 2020). Though containment initiatives like quarantine and social distancing methods practice to control the outburst of COVID-19, International Monetary Fund (IMF) forecasts global growth failure and the worst economic downturn since the great depression in 1930s (Amir, 2020). As a developing country, Sri Lanka’s finance industry has been most affected by the crisis, with the breakdown of...
Recent posts

"Hello World" in Different Languages

TRUE STORY!!! And in Binary  :  1000100111010101101011101000000111101010100011101101110111101101010010100010101010101011110101000101010101010101010100100101000101010101110101010100000010111011110110101001010001010101010101111010100010101010101010101010010010100010101010111010 101011001110111101101011101111011010100101000101010101010111101010001010101010101010101001001010001010101011101010100010100010101010101011110101000101010101010101010100100101000101010101110101010.. What the hell? :O Ref -  https://www.facebook.com/photo.php?fbid=554573284591554&set=a.241809332534619.55240.241806149201604&type=1&relevant_count=1&ref=nf

Selenium - 1

1. What is Selenium? Selenium is a portable software testing framework for web applications . It is a JavaScript framework that runs in web browser, works anywhere JavaScript supports. Selenium provides a test domain specific language (DSL) such as HTML to write tests in a number of popular programming languages, including Java , Ruby , Groovy , Python , PHP , and Perl . Selenium deploys on Windows , Linux , and Macintosh platforms. Note : Selenium RC and WebDriver are merged into a single framework to form Selenium 2. Selenium 1 refers to Selenium RC.  2. Why is Selenium? There are seve ral re ason s to choose Selenium. Of course, it is open source and because of that it is easy to learn as you may f ind lots of resources in the internet. 1. Supports many browsers. 2. Supports many scripting/programming languages. 3. Flexible to your choice, simple record and playback (IDE), Comple Framework design to your choice by using your favorite programming l...

How To Install Apache Maven On Linux (CentOS)

When installing Apache Maven, first of all, check whether Java 1.x JDK is installed in your machine. If not make sure to install Java JDK, not JRE. Note: To have an understanding about JDK, JRE and JVM, follow this . 1. Download Apache Maven After installing Java JDK, you are now eligible to install Maven. Go to Apache Maven Official Site  and download any version you need.  For this example, I use Apache Maven version 3.0.5 In your terminal, $ wget  http://mirror.reverse.net/pub/apache/maven/maven-3/3.0.5/binaries/apache-maven-3.0.5-bin.tar.gz $ sudo tar xzf apache-maven-3.0.5-bin.tar.gz -C /usr/local $ cd /usr/local $ sudo ln -s apache-maven-3.0.5 maven 2. Setting up the Maven Path system-wide In your terminal again, $ sudo vi /etc/profile.d/maven.sh export M2_HOME=/usr/local/apache-maven-3.0.5 export PATH=${M2_HOME}/bin:${PATH} Now we are done with installing Apache.  Note: It is essential to restart the machine to activate above envir...

How To Install Apache Maven On Windows

When installing Apache Maven, first of all have to download the Maven’s zip file. Then extract it and configure the Windows environment path variable. Note : Make sure JDK is installed, and “ JAVA_HOME ” variable is added in Windows environment variable, and point to the JDK folder. 1. Download Apache Maven   Go to Apache Maven   official website , select a version and click on the download link. Eg:  apache-maven-3.1. 0 -bin.zip     2 . Extract And Setting Up Maven Home Extract the downloaded zip file, let's say you extracted to drive C. Eg: C:/Maven Note that no installation required.  Now, Adding MAVEN_HOME variable in system variables.  To do that Start --> Computer --> Right click on that and select properties --> Advance System Settings Add a new System Variable called MAVEN_HOME.    3 . Adding T o P ATH Variable Here you have to give the path to bin folder of Maven installation. Since yo...

Shortcomings of Commonly Used Computer Languages

A.       Typecasting issue in C++ C++ code of type casting, which is considered as an insecured code. The same problem occurred in Ariane 5, which ended up in a crash.  According to (Soulie, 2007) , Type casting is known as converting an expression of a given type into another type. In C, type converstion can be done using,    1.       Implicit Convertion –   one type of data is automatically converted into compatible type of data.    2.       Explicit Convertion – Many conversions, specially thos that imply a different interpreation of the value. It has 4 specific casting operators (dynamic_cast, reinterpret_cast, static_cast and const_cast). Here, the conversion truncates, that is the fractional part is discared. There is a data loss, since the out put is 13, expected output was 14. Remedy – Use static_cast and add 0.5 before casting. c = static_ca...

Ariane 5 Disaster and Design by Contract

Ariane 5 was an unmanned rocket launched by the European Space Agency (ESA) and Centre National d’Etudes Spatiales (CNES) after taking 10 years to develop it with a cost of $7 billion.   About 40 seconds after lifting off, the rocket exploded during its first voyage on 4 th of June, 1996 and ended in a failure and became one of the disastrous failures though there were no victims. An inquiry board which nominated by the Director General of ESA and the Chairman of CNES investigated the causes of crashing and issued a report. According to the report, reason behind this crash was a software failure. The root cause behind Ariane 5 flight 501’s crash was uncaught exception which could not handle during data conversion of 64-bit floating point number to 16-bit integer for the horizontal component of the velocity vector with respect to the platform and an overflow occurred. The crash occurred due to an oversight to handle this particular exception even though they handled...