Posts

Welcome to Malaysia: The What Why and How of Malaysian Expreience

Malaysia: Budget, Expenses, And Much More(A Complete Guide ) Hello Everyone, especially Expats. I hope you are looking for an article that can guide you through the basic and advanced level of living expenses in Malaysia if you are looking forward to coming and settling here for the long or short term. I am also an expat living in Malaysia for over a year now and become quite familiar with everything here. first of all, here are some basic historical and fun facts about Malaysia as you should always know the country before you start living there. a) on 31st august 1957,Malaysia got independence from bristishers(of course). In 1963, independent Malaya was united with the then-British colonies of North Borneo, Sarawak, and Singapore to form Malaysia. but in August 1965, Singapore was expelled from the union and became an independent separate country. b) As of today Malaysia is a federation of 13 states and 3 federal territories in Southeast Asia. It consists of 2 regions separated by the

Install jdk on Macbook MacOS M2

Published : 21st Dec 2022  OS version: MacOS 13.0.1 (22A400) - Ventura Architecture: Silicon chip - M2 

NG0303: Can't bind to 'child_variable' since it isn't a known property of 'child-component'.

Image
NG0303: Can't bind to 'labels_value' since it isn't a known property of 'app-line-chart'. Any idea how this error occured? Origin: <td><app-line-chart [labels_value]="lineChartdata" >loading</app-line-chart></td> Here we have a variable "labels_value" that is missing in the component of selector "app-line-chart". Solution: Need to add in child component, LineChartComponent in this case, declaring the selector "app-line-chart" @Input()   labels_value: any; Solution done!

Angular Pie Chart

Image
To start implementing, visit the below link:  https://www.npmjs.com/package/ng2-charts/v/3.0.0-rc.2 and follow the instructions it mentions, going with the flow I will show you how it impacts your projects File structure: You can install ng2-charts using npm npm install ng2-charts@next --save Effect: Two folders gets added to node_modules You need to install and include Chart.js library in your application (it is a peer dependency of this library) (more info can be found in the official chart.js documentation) npm install chart.js --save API Import import { ChartsModule } from 'ng2-charts'; // In your App's module: imports: [    ChartsModule ] Chart types There is one directive for all chart types: baseChart, and there are 8 types of charts: line, bar, radar, pie, polarArea, doughnut, bubble and scatter.  

Angular environment file infomation in angular.json

 fileReplacements": [                 {                   "replace": "src/environments/environment.ts",                   "with": "src/environments/environment.prod.ts"                 }

Rest API Interview

  15 Rest API Interview Question & Answers (2022 Update) 1) Explain what is REST and RESTFUL? REST represents Representational State Transfer; it is a relatively new aspect of writing web API. RESTFUL is referred to web services written by applying the REST architectural concept are called RESTful services, it focuses on system resources and how the state of resources should be transported over HTTP protocol to different clients written in a different language. In RESTFUL web service HTTP methods like GET, POST, PUT, and DELETE can be used to perform CRUD operations. 2) Explain the architectural style for creating web API? The architectural style for creating web API is HTTP for client-server communication XML/JSON as a formatting language Simple URI as the address for the services Stateless communication 3) Mention what tools are required to test your web API? SOAPUI tool for SOAP WS and Firefox “poster” plugin for RESTFUL services. 4) Mention what are the HTTP methods supported b

20 Hibernate Questions

Image
  I expect that you have some Hibernate experience and knowledge before you go through this list of questions otherwise it would be quite back and forth. If you are a beginner to Hibernate, I suggest you first go through a course like  Spring and Hibernate for Beginners  which provides all the fundamental knowledge in a quick time. After that you can better understand the points the interviewers are looking and these questions will also make sense to you. 20 Hibernate Questions and Answers from Java JEE Interviews Here is my selected list of 20 Hibernate-based questions for Java developers. It contains questions from Hibernate fundamentals, one-to-one, and one-to-many mappings, caching, Hibernate vs JDBC comparison, pros and cons of Hibernate, known problems with Hibernate, and Performance improvement. 1. What is Hibernate? Hibernate is an ORM (Object-relational Mapping) framework, which allows the developer to concentrate on business logic by taking care of the persistence of data by