Posts

Sri Lankan IT industry & companies

Image
The Sri Lankan IT industry has emerged as a significant player in the global market, specializing in business process outsourcing (BPO) and serving as an offshore development center for numerous Fortune 500 companies from various regions including North America, Europe, and Asia. The industry is known for its Skilled workforce: Sri Lanka boasts a large pool of highly skilled and qualified IT professionals, many of whom are proficient in various programming languages and technologies. Cost-effectiveness: Compared to other outsourcing destinations, Sri Lanka offers competitive rates for IT services, making it an attractive option for businesses seeking to reduce costs. Strong government support: The Sri Lankan government actively supports the development of the IT industry, providing various incentives and infrastructure improvements to attract foreign investment. Some of the well-known global IT companies with a presence in Sri Lanka include: HSBC IFS Intel Motorola WNS RR Donnelley Vi...

A/L Flowchart

Image
Question  Answer๐Ÿ‘‡๐Ÿ‘‡๐Ÿ‘‡ ๐Ÿ˜Š๐Ÿ˜Š๐Ÿ˜Š

File Handling in Python

r: Opens the file in read-only mode. Starts reading from the beginning of the file and is the default mode for the open() function. rb: Opens the file as read-only in binary format and starts reading from the beginning of the file. While binary format can be used for different purposes, it is usually used when dealing with things like images, videos, etc. r+ : Opens a file for reading and writing, placing the pointer at the beginning of the file. w: Opens in write-only mode. The pointer is placed at the beginning of the file and this will overwrite any existing file with the same name. It will create a new file if one with the same name doesn't exist. wb: Opens a write-only file in binary mode. w+: Opens a file for writing and reading. wb+: Opens a file for writing and reading in binary mode. a: Opens a file for appending new information to it. The pointer is placed at the end of the file. A new file is created if one with the same name doesn't exist. ab: Opens a file for...

DevOps

Image
 What containers are & what's important? Containers are simply another method of deploying applications so, it's a development paradigm. where we can actually stick the application along with some of the operating system stuff, inside a container and its self-contained and isolated into itself and therefore. we're able to move it from place to place. you're able to move it from cloud to cloud, a platform to platform, a device to device. The value is that they're able to keep applications isolated and promote portability. containers are not replacing virtualization. This is a common misconception. Why container?

OOP's Polymorphism

 It provides different services but the same name/domain . Polymorphism is implemented by method overloading. Example :  class ploy{     public static void main ( String [] args){         ploy obj = new ploy();         obj.arae( 10 );         obj.area( 5 , 3 );     }     void area( int a){         System.out.println( "area 1 : " + a*a);     }     void arae( int a, int b){         System.out.println( "area 2 " + a*b);     } }

OOP's Constructor

 The constructor is also a method. No return/keywords such as void, int, float etc, are not used before method name. Constructor name also created using class name . No calling required. Constructoer is automatically called while creating an object. Example 01 - file saveAs cons.java compail command - javac cons.java   ↪ java cons     ↪ class cons{     public static void main( String [] args){         cons obj = new cons();     }     cons(){         System.out.println( 'Hello world' );     } } Example 02 - file saveAs  squar.java compail command - javac squar.java   ↪ java  square      ↪ class squar{     public static void main( String [] args){         squar obj1 = new squar( 20 );     }     squar( int a){         System.out.println( "Area = " + a*a);   ...

OOP's Class

Class is a template to create objects. The class consists of attributes and operations. Class Declation  class className{ } Object Creation className objectName = new className(); ex: rectangle smallarea = new rectangle (); Operation / Method No return - void          void area(){          .......           } return - int / string etc.         int area(){         .......     return 0;         }

What kind of background knowledge is required for computer science?

What kind of background knowledge is required for computer science? 1. At least one programming language (Python, C++, Java, C#, Javascript, C, Haskell, Ruby, Rust, Scala) is required. We need you to be able to write programs that can:  1) read data from the standard input (usually a sequence of integers);  2) compute the result (usually a few loops suffice); and  3) print the result to the standard output.  2. A basic understanding of discrete mathematics: induction, contradiction, and proof by induction. For analyzing algorithms (proving correctness, predicting execution time) and algorithmic reasoning in general, discrete mathematics is required. We recommend that you take our partner specialization, Introduction to Discrete Mathematics for Computer Science if you wish to brush up on your discrete mathematics skills. It takes a try-this-before-we-explain-everything method to teach discrete mathematics: you'll be tackling a variety of interactive puzzles that were ...

Funny moment with my first hello wold in react Js

Image
 

UOB - Final project - poster

Image
A4 Poster Tool: adobe photoshop CS6 Design By : Sarmila Sivaraja

Help

  http://www.textinflator.com/ https://spinbot.com/ https://keras.io/api/applications/ https://www.fritz.ai/image-recognition/ https://www.customvision.ai/ https://www.kaggle.com/ https://www.oxfordlearnersdictionaries.com/

uses-permission

     < uses-permission   android:name = "android.permission.INTERNET" />      < uses-permission   android:name = "android.permission.RECORD_AUDIO" />      < uses-permission   android:name = "android.permission.CAMERA"   />      < uses-permission   android:name = "android.permission.WRITE_EXTERNAL_STORAGE"   />      < uses-permission   android:name = "android.permission.WRITE_INTERNAL_STORAGE"   />      < uses-permission   android:name = "android.permission.READ_CONTACTS"   />      < uses-permission   android:name = "android.permission.ACCESS_COARSE_LOCATION"   />      < uses-permission   android:name = "android.permission.ACCESS_FINE_LOCATION"   />

Nullable types Version change example - isEmpty

 As you work with Dart, you may find that minor things stop working. For example: stdout . write ( 'Enter your name : ' );   String ? str1 = stdin . readLineSync ();   str1 . isEmpty ? stderr . write ( 'Name is empty!!' ) : stdout . write ( 'Good Morning $str1' );   Error : Property 'isEmpty' cannot be accessed on 'String?' because it is potentially null .   Try accessing using ?. instead .   str1 . isEmpty Dart is both great and irritating because of this... Dart is rapidly evolving, and each new version introduces a slew of minor changes that might damage your code. Depending on the version of Dart you're running, you may never run across this problem or it may appear at any time. Always check your version's online Dart documentation, as well as the updated Github code attached to each lesson. This specific example is a change to NullSafety: https://dart.dev/null-safety/understanding-null-safety https://stackoverflow.com/qu...

3 levels of thinking.

Generally, there are 3 levels of thinking. Let's start with the... Level 1 - Overthinking It means that you think a lot and take fewer actions. You plan for "Perfection" And you’re afraid to make the wrong move… So you keep evaluating. Which holds you back to take action. So if you are of them then, ask yourself… where am I actually overthinking a lot? Now coming to the... Level 2 - Thinking in the Wrong direction What does it actually mean..? Let's take an example... If you are new to a business. What should be your MAIN focus..? Getting clients… Focusing more on your marketing and sales strategy… Getting results for your clients…etc. Right..? But if you’re more focused on things like… What colour should I use for my brand… How do I outsource some work to others…etc Then you’re focusing on the wrong places. Now I’m not saying those things are not important… You might still need to consider those points... But they’re not the MAIN focus! Make sense? So that is thi...

7 Powerful ways to master SELF-DISCIPLINE

Image
7 Powerful ways to master SELF-DISCIPLINE 1.Wake on time 2.Avoid temptation 3.Find trusted coaches or mentors 4.create new habits and rituals 5.meet deadlines 6.Know your strengths and weakness 7.Exercise daily

Navigation

  Navigation Navigator.push(     context,     MaterialPAgeRoute(builder:(context) => SecondRoute()). ); Navigator.pop(context);

Flutter widgets

Image
Text row, column Container Stack BoxDecoration, TextStyle, Padding, SizeBox ListView, GridView, SingleChildScrollView Expanded, Flex InkWell, GestureDetector Stateless widgets Stateless widgets never change Ex: icon, container, text Stateful widgets if a widget can change, when the user interacts with it,  its's stateful  it's dynamic widget's state is stored in a state object Ex: Checkbox, radio , slider, Form , TextField Navigation Navigator.push(     context,     MaterialPAgeRoute(builder:(context) => SecondRoute()). ); Navigator.pop(context);

Dart

Image
 A terse , strongly typed, object-oriented language. Why Dart? Performance in development and in production supports both JIT and AOT compilation Just-in-time code is continuously recompiled directly on the device, allowing hot reload. Ahead-of-time the code your app uses is compiled directly to native code, leading to fast startup and predictable performance.   

Responsive UI

Image
Use the mediaQuery.of() method in your build functions AspectRatio CustomSingleChildLayout CustomMultiChildLayout FittedBox FractionallySizeBox LayoutBuilder MediaQuery MediaQueryData OrientationBuilder Animation Tween animation Defined beginning and ending pointer, timeline, and a curve. physics-based animation motion is modeled to resemble real-world behaviour.

Upload flutter project to gitHub

Image
  git --version   this is for check version of git git config --global user.name "yourGit username"  here you need to insert your git username git config --global user.email "yourGit email"   here you need to insert your git email address git init git add .  git commit -m "my commit title" git remote add origin gitRepositoryLink git push -u origin master --------------------------------------------------------------------------------------------------------------- 2nd commit --------------------------------------------------------------------------------------------------------------- git status git add . git commit -m "your commit title" git push