This post shows how Golang can read a text file line by line using a buffered IO or bufio package. The content of a file may be in Chinese or English because Golang supports UTF-8 by default. Moreover, we do
Write Out XML Tags in Java using Lambda
Missed writing out an XML element end tag in your Java codes? You’re not alone. It is acceptable for small XML documents because spotting the erring codes is relatively easy. However, things may get very frustrating when writing huge XML
Angular ngIf-else with ng-template Example
This post briefly demonstrates how to create an if-else construct in HTML using *ngIf and ng-template.
Java – Convert LocalDateTime to OffsetDateTime in any timezone
This post shows how to convert a Java LocalDateTime object to an OffsetDateTime object at the current zone offset. For example, let’s say we are in Singapore and want to convert the current LocalDateTime to a string value. This string
Angular EventEmitter Child to Parent Component
This post shows how to pass data from the child component to the parent component using Angular EventEmitter. We have migrated the codes from Angular 7.20 to 15.0.0. Angular Requirements We used the following items for this post. Angular CLI
Angular – Pass Data from One Component to Another
This post shows how to pass data from one component to another in Angular using @Input. Also, we embed a component’s selector in another component’s HTML. Therefore, in that sense, we are passing data from a parent to a child
Angular – Bootstrap Another Module other than AppModule
This post demonstrates how to change a newly created Angular project to use another @NgModule other that the default AppModule class.
AWS – S3 Bucket Policy Sample To Make All Files Public
This is shows how to use S3 Bucket Policy to make all files public.
AWS – Using Load Balancer for Your Domain
Do you want to have an AWS load balancer for your domain? This post shows how to point your domain to an AWS Load Balancer resource using two A Records, and we will use my domain name origdoc.com. NOTE: doing
Point Namecheap Domain To EC2 Using AWS Route53
This post demonstrates how to use a Namecheap domain in AWS and point it to an EC2 instance via Route53. We will verify the setup by accessing an Apache Webserver in the EC2 instance via www.origdoc.com. Basic Requirements Before anything,