Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine. It is a server-side programming to build network applications using JavaScript. For a machine to run NodeJS, it should be configured. Configuring it in Amazon EC2 instance is as similar as configuring it in our local machine.
Month: December 2016
Using query string in script tag
It is possible to send query string to an external JavaScript file like this:
< script src="scripts.js?version=123"></script>
PEM and PPK
PEM
Privacy Enhanced Mail is a file format that consists of certificate or a private key or sometimes both. It is a base64 encoded certificate that are used for web servers. The contents of these kind of files are readable using editors. It will be in this format:
Launch Ubuntu 16.04 using Amazon EC2
Launching an EC2 instance in AWS is much simpler. It can be launched in just 10 steps. For this demo, we are going to use latest Ubuntu xenial-16.04 64 bit version.
Get query string value
Get the value of a field from query string using JavaScript:
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)
(&|#|;|$)').exec(location.search)||[,""])
[1].replace(/\+/g, '%20'))||null
}
Sum n times
Adding two or more time in PHP is now easy. A small utility function can be use to sum multiple time in any format.
தேவனிடத்திலிருந்து வரும் ஆசீர்வாதங்கள்
சங்கீதம் 115:13ல் நாம் இப்படியாக வாசிக்கிறோம்:
கர்த்தருக்குப் பயப்படுகிற பெரியோரையும் சிறியோரையும் ஆசீர்வதிப்பார்
கர்த்தருக்கு பயப்படுதல் என்றால், அவருடைய கட்டளைகளுக்கு கீழ்படிந்து, அவருடைய கற்பனைகளின் படி நடப்பதே ஆகும். தேவனுக்கு பயப்படும் ஒவ்வொருவரையும் தேவன் ஆசீர்வதிப்பார் என்பதாக இந்த வசனம் கூறுகிறது. எப்படிப்பட்ட ஆசீர்வாதத்தை தேவன் நமக்கு தருகிறார்?
Receiving God’s grace and mercy
I will be gracious to whom I will be gracious, and will show mercy on whom I will show mercy.
Exodus 33:19
Once we read this verse, we would doubt if God shows partiality or favoritism. But when we read Acts 10:34, Peter says, “God shows no partiality“. It appears contradictory when read superficially. That’s why God wants us to explore such verses; if asked, he reveals.
தேவனுடைய இரக்கத்தையும் கிருபையையும் பெற்றுக்கொள்ளுதல்
எவன்மேல் கிருபையாயிருக்கச் சித்தமாயிருப்பேனோ, அவன்மேல் கிருபையாயிருப்பேன்; எவன்மேல் இரக்கமாயிருக்கச் சித்தமாயிருப்பேனோ, அவன்மேல் இரக்கமாயிருப்பேன்
யாத்திராகமம் 33:19
இந்த வசனத்தை வாசித்ததும் நமக்கு தேவன் பட்சபாதமுள்ளவரோ என்று தோன்றும். ஆம், அப்படி தானே தேவன் சொல்கிறார், “எனக்கு விருப்பமாயிருப்பவனிடம் இரக்கமாகவும், தயவாகவும் இருப்பேன்” என்பதாக! ஆனால் அப்போஸ்தலர் நடபடிகளில் (10:34) வாசிக்கும்போது, பேதுரு சொல்கிறார், “தேவன் பட்சபாதமுள்ளவரல்ல” என்று. Continue reading “தேவனுடைய இரக்கத்தையும் கிருபையையும் பெற்றுக்கொள்ளுதல்”
Kindness
The desire of a man is his kindness
Proverbs 19:22
God expects us to do good to others. When Jesus was living with us, he was doing good for everyone. He not even did good to those who loved him but he rendered healing to a servant of the high priest who came to arrest him when he was struck on his right ear that was cut down. Likewise, we are expected to do good to others; God calls this as kindness.
தயவு
நன்மைசெய்ய மனுஷன் கொண்டிருக்கும் ஆசையே தயை
நீதிமொழிகள் 19:22
மற்றவர்களுக்கு நன்மை செய்யவேண்டும் என்பது தேவன் நம்மிடம் எதிர்பார்க்கும் கனி. இயேசு இந்த உலகத்தில் மனிதனாக மனிதனோடு வாழ்ந்தபோது அவர் நன்மை செய்பவராகவே சுற்றித்திரிந்தார் என்பதாக வேதத்தில் வாசிக்கிறோம். அவர் தம்மை நேசித்தவர்களுக்கு மாத்திரமல்ல, கடைசி நிமிடத்தில் தன்னை பிடிக்கவந்த போர்சேவகனுடைய காதை பேதுரு வெட்டினபோதும், அந்த போர்சேவகனுக்கு அற்புத சுகத்தை தந்தார்; இழந்த காதை திரும்பவும் இணைத்தார். அதுபோலவே, நாமும் மற்றவர்களுக்கு மனதார நன்மை செய்யவேண்டும் என்று எதிர்பார்க்கிறார்; அதனையே தயை என்கிறார்.