Joseph Jude

Technology, Psychology, and Story Telling

All articles under - code

My 2nd Book - Hapi with Typescript
I'm writing a book on Hapi in an incremental and iterative mode. I'm using softcover as a publishing platform for this work-in-progress book.…
Connecting to SQL db from Hapi using TypeORM
Connect to Postgresql from Hapi via TypeORM, a typescript based ORM…
NPM as a build tool for Typescript projects
Use npm as a build tool for compiling Typescript, monitoring changes, and restarting development server.…
In-depth guide to handling routes in hapijs
Routes help us to add functionality to our web-apps. Understanding how to add routes to hapijs apps.…
Export Postgresql data to text files using nodejs
Connect to a relational db via TypeORM from nodejs (typescript)…
Comprehensive guide to using Gulp with Hapijs & Typescript
Gulp automates many of the tasks in the development process. Here we use gulp to compile typescript files and restart hapijs server.…
Step by step guide to dockerizing a hapijs app
How to dockerize an existing hapijs application so that you can deploy with ease and confidence…
Using Pouchdb with nodejs
If you want to store unstructured data locally, checkout PouchDb…
Auditing a website with nodejs
Auditing a site for SEO, security, and performance is time-consuming, and tedious. Automate it with nodejs.…
Git mirroring
Mirror git repositories in simple steps…
Redirecting a URL using nodejs
Merged sites? Don't want to lose traffic to old site? Redirect with a simple app.…
Getting started with HapiJS and Typescript
Learning to use typescript with hapijs…
A beginner's reference guide to TypeScript Language
TypeScript is a layer on top of JavaScript targeting developer's productivity.…
Solving Euler-005 in Swift
Know your algorithms…
Double loops are slower in Swift than in Python & Typescript
Swift is pathetically slow to handle double loops…
Timing code execution in Swift, Python & Typescript
How to track execution time of a code block…
Largest palindrome made from the product of two 3-digit numbers
Solution to Project Euler 004 problem in Swift, Python & Typescript…
Largest prime factor of the number 600851475143
Solution to Project Euler 003 problem in Swift, Python & Typescript…
Sum of even valued Fibonacci numbers less than 4 million
Solution to Project Euler 002 problem in Swift, Python & Typescript…
Find the sum of all the multiples of 3 or 5 below 1000
Solution to Project Euler 001 problem in Swift, Python & Typescript…
Export sqlite data to text files using Swift
Export sqlite data to text files using Swift…
Migrating data from Postgresql to Sqlite using Python
Migrate data from postgres to sqlite using python…
dlite makes it easy to start with docker on Mac
Getting started with Docker on Mac is a pain. Now dlite makes it easy.…
Building BaasBox on Alpine
How to run BaasBox on alpine linux?…
Swift Challenge 009: Count upper and lower case letters in a string
Write a program to count upper and lower case letters in a given string.…
swift Challenge 008: Check if a string is a pangram
Write a program to check if the string entered by the user is a pangrams. Pangrams are sentences constructed by using every letter of the alphabet at least once.…
swift Challenge 007: Luhn's Algorithm
Validate credit card number with Luhn's algorithm…
Swift Challenge 006: Stringify even numbers
Take an array of numbers, concatenate the even numbers as a string…
Swift Challenge 005: Sort comma separated words
Write a program that takes a comma separated sequence of words and prints the words in a comma-separated sequence after sorting them alphabetically.…
Swift Challenge 004: Factorial of n
Write a program to compute factorial of a number.…
Swift Challenge 003: Unique elements of two arrays
Write a program to make an array of unique elements from two arrays. Sort the output array.…
Swift Challenge 002: Check if a string is palindrome
Check if a string is a palindrome -- it reads the same forwards as backwards like racecar…
Swift Challenges
Interesting swift challenges…
Swift Challenge 001: Divisible by 7 but not a multiple of 5
Program to find all numbers which are divisible by 7 but are not a multiple of 5, between 2000 and 3200…
Testing Beego Applications
Automated testing for Beego applications…
Common Flask Errors And Their Solutions
Errors I encountered while developing flask applications and their solutions.…
Introduction To Sailsjs Testing
Basics on getting started with testing Sailsjs apps…
Analysing Twitter With ELK Tools
Logstash, ElasticSearch & Kibana makes it easy to analyse any logs. In this post, I analyse twitter stream for AppSec tweets with ELK tools.…
Installing Logstash, ElasticSearch & Kibana on a Vagrant Box
None…
Installing Sailsjs On Webfaction
Let us see how to install sailsjs on webfaction and how to serve this app to the world.…
Getting Started With Sailsjs
Sailsjs, like any web-framework has many parts. Lets get it installed to start developing with it.…
Understanding Django Template Tags
What are the benefits of django template tags than functions?…
Accessing Flickr Photos with Python
Working python code to access flickr photos from python…
Say In Pixels - a photoblog in Django
A photoblog coded in Django…
A free (but superb) Django hosting
If you don't want to pay heavily while learning Django, try a free hosting service…
Handling ManyToMany field in Django
Sample code to handle M2M in Django…
Building a Book Inventory in Django
Learn Django by building a tool…
Pagination in Django
how to enable pagination in django…
Learning to test
testing django applications.…
Django application as a stand-alone desktop application
How to package Django apps as stand-alone desktop apps?…
My frustration with packaging django
Packing Django application as desktop apps is a frustrating experience.…
A Simple 'Twitter' clone in Django
create a twitter clone in Django for internal use…
Serving media and static contents in Django
None…
My Django workspace
tools and settings to get started with django…
Using Outlook Object Model
Using outlook object model to send emails.…