Fam Wencong, Kenneth

My Diary

What is the DOM?

Published: Tuesday, May 12, 2020

The Document Object Model (DOM) is a programming interface for HTML documents. It represents the page so that programs can change the document structure, style, and content. It is an object-oriented representation of the web page, which can be modified with a scripting language such as JavaScript. Although this is an important concept, you don’t […]

Read more...

As A Developer, You Should Be Using Node.js & NPM

Published: Monday, May 11, 2020

As a developer, you should be using Node.js & NPM. What is Node.js & NPM? Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a web browser. Node.js lets developers use JavaScript to write command-line tools and for server-side scripting. NPM (Node Package Manager) is the default package manager for […]

Read more...

Binding JavaScript Code To Android Code

Published: Monday, May 11, 2020

When developing a web application that’s designed specifically for the WebView in your Android app, you can create interfaces between your JavaScript code and client-side Android code. For example, your JavaScript code can call a method in your Android code to display a Dialog, instead of using JavaScript’s alert() function. To bind a new interface […]

Read more...

Navigating Through Local Files In Android WebView

Published: Monday, May 11, 2020

I had a project where I had to build a HTML5 Android mobile application. Below is the code I used to navigate in between local files in Android WebView. private WebView myWebView; private class MyWebViewClient extends WebViewClient { @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.startsWith(“http”)) { Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url)); startActivity(intent); […]

Read more...

Web Deploy Error Fix

Published: Sunday, May 10, 2020

What do you do when Web Deploy acts up? Web deploy is a pain sometimes throwing errors out of the blue. To quickly fix these errors, you have to repair/re-install the application. To do so, search for “Apps & Features”, find “Microsoft Web Deploy x.x” then click – Modify > Repair – as like the […]

Read more...

My First Vlog

Published: Sunday, May 10, 2020

Below is my first vlog. I trade weekly so I will be sharing my trading views and opinions on my blog and YouTube channel. I am also thinking of doing tech tutorials such as programming and etc going forward. Trading Week 11 to 15 May So for my first video, I will be doing a […]

Read more...

My Tattoo Just Done!

Published: Sunday, March 8, 2020

Just did my tattoo! An image of a crucifix on my left forearm to remind me of my faith and religion. Did it at JOHNNY-TWO-THUMB TATOO STUDIO by Shawn. They quoted me $S280 but I decided to pay S$380 cause I liked his work. They are located at #04-15, FAR EAST PLAZA, 14 SCOTTS ROAD, […]

Read more...

Coronavirus Measures

Published: Monday, February 17, 2020

This is for my readers who want to know whether what your employer is doing against the coronavirus is enough. My employer, DELTEQ, first started measuring temperatures as a measure against the coronavirus after the dorscon risk assessment was raised to orange. They are stepping up their measures against the coronavirus. Employees are grouped into […]

Read more...

A Simple T-SQL Search Script

Published: Sunday, February 16, 2020

Below is a T-SQL search script. Modify it to suit your needs. DECLARE @temptable1 TABLE ( [id] bigint, [count] int ) DECLARE @temptable2 TABLE ( [id] bigint, [name] nvarchar(1000) ); INSERT INTO @temptable2 VALUES (1,’Tom’), (2,’Jerry’), (3,’Kate’), (4,’Diana’); DECLARE @q nvarchar(MAX) = N’Tom’; DECLARE @id bigint; DECLARE @document nvarchar(MAX); DECLARE Seach_Cursor CURSOR FOR SELECT [id], […]

Read more...

Top Local Citations In Singapore For SEO

Published: Wednesday, January 29, 2020

What is a local citation for SEO? A local citation is any online mention of the name, address, and phone number for a local business. Citations can occur on local business directories, on websites and apps, and on social platforms. Citations help Internet users to discover local businesses and can also impact local search engine […]

Read more...