Categories
Open Source OsX RabbitMq Solutions Web

RabbitMQ Server – Issue with High Sierra – Mac OS

After updating to High Sierra, I faced issues with starting rabbitmq-server.  The command gave the following error: RabbitMQ 3.6.3. Copyright (C) 2007-2016 Pivotal Software, Inc. ## ## Licensed under the MPL. See http://www.rabbitmq.com/ ## ## ########## Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log ###### ## /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log ########## Starting broker… completed with 10 plugins. Assertion failed: (ctx), function digest_update, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/boringssl/boringssl-109.20.5/apple/crypto/digests.c, […]

Categories
JavaScript Open Source Solutions Web

JavaScript Date Format YYYY-MM-DD

Here is a simple function that takes the input of JS Date and returns a string of format YYYY-MM-DD: var getDateFromDateTime = function(date) { date = new Date(date); //Using this we can convert any date format to JS Date var mm = date.getMonth() + 1; // getMonth() is zero-based var dd = date.getDate(); if(mm

Categories
JavaScript Open Source Solutions Web

Convert JavaScript Date format YYYYMMDD

Here is a simple function that takes the input of JS Date and returns a string of format YYYYMMDD: var getDateFromDateTime = function(date) { date = new Date(date); //Using this we can convert any date format to JS Date var mm = date.getMonth() + 1; // getMonth() is zero-based var dd = date.getDate(); if(mm

Categories
AngularJS Solutions Web

AngularJS – Filter to add Leading 0s to any Number

Lets say you want to display a list of numbers from 1 to n but want them to be displayed as 01 02 03 04 05… and not 1 2 3 4 5… Angular by default doesn’t have a filter for this. Here is how you implement it: Implement the filter in a module. Here […]

Categories
Linux Solutions Ubuntu Web

WordPress: Error Uploading Media Files

I recently got the following error while uploading media to my wordpress site: Unable to create directory uploads/2016/06. Is its parent directory writable by the server? Here are the steps to fix the issue: Possible Issue 1: Incorrect Directory pointed to in the settings: Open your WordPress Admin page (this is usually at /wp-admin) Hover […]