Home Blog JavaScript
JavaScript
Node.js SQS sendMessage promise chaining on AWS Lambda
JavaScript
Written by Dicky   
Friday, 05 October 2018 15:40
AddThis Social Bookmark Button

I encountered a weird behavior when writing a AWS Lambda on Node.js when it involved SQS sendMessage() method.

Read more...
 
Sinon node.js unit testing for node-fetch
JavaScript
Written by Dicky   
Friday, 05 October 2018 15:26
AddThis Social Bookmark Button

Recently, I need to create unit testing for my node.js project that involved node-fetch component. For unit testing, I need to mock the return for the fetch() call.

Read more...
 
Recursive JavaScript setTimeout()
JavaScript
Written by Dicky   
Tuesday, 28 January 2014 17:22
AddThis Social Bookmark Button

I was trying to have a javascript function that will call a web service routinely and update the data periodically.

Read more...
 
knockout.js date format
JavaScript
Written by Dicky   
Monday, 27 January 2014 17:58
AddThis Social Bookmark Button

Formatting date in Javascript is a lot of hassle. When you get the data back from web service, you will get in the following format 2014-01-27T18:00:08-08:00. In order to convert them to a human-readable format.

Read more...
 
TypeError: $(...).newsTicker is not a function
JavaScript
Written by Dicky   
Monday, 27 January 2014 17:52
AddThis Social Bookmark Button

I tried to call an extended jQuery function inside a  $(document).ready(function () {.

Read more...
 
<< Start < Prev 1 2 3 4 Next > End >>

Page 1 of 4