Problem :- We are trying to convert timestamp 2016-02-11 03:31:18 to pubnub timestamp of 17-digit precision unix time (UTC) something like 13406746780720711 given in reference url given by pubnub function parseDateTime(s) { var b = s.split(/\D/); return new Date(b[0],b[1]-1,b[2],b[3],b[4],b[5]) } date = new Date(parseDateTime(“2015-02-11 02:10:54”) …
PHP
Openfire: Add user subscription status as “both”
Problem : Issue when i add user using RestApi include “vendor/autoload.php”; $api = new GidkomOpenFireRestApiOpenFireRestApi; $api->secret = “mySecretKey”; $api->host = “HostName”; $api->port = “9090”; $api->useSSL = false; $api->plugin = “/plugins/restapi/v1″; // plugin For adding user to Roster i am using following code $jid=”xyz@domainname”; //Add to …
AWS: Useful terminal commands
SSH connection using PEM file $ ssh -l ABC.pem username@53.0.111.225 IMPORT mysql db to AWS from local system $ mysql -u username -h hostname -p dbname < dbfile.sql EXPORT mysql db $ mysqldump -h hostname -u username -p db > dbfile.sql Transfer file via ssh …

Upgrade Vanilla 1.1 to 2.3
Please Follow Following Step:- – Download New Vanilla 2.3 installer – Install Vanilla 2.3 into localhost – copy all folder (everything except conf/, cache/, uploads/, custom themes/and custom plugins/ htaccess) – before paste delete all folder from old vanilla (except conf/, cache/, uploads/, custom themes/and …
Quickbook integration with yii1 error
When this issue raised? Quickbook integration with yii1 framework failed because of quickbook SDK’s internally used another 3rd party library which cause the issue. Every time it throws the error like “Failed to open stream: No such file or directory found”. How to solve it? …
Slow page load
Problem Client was running into an issue where his website pages were taking a really long time to load. Solution The following .htaccess code helped me to solve the issue. #Force non-www: #RewriteEngine On #RewriteCond %{HTTP_HOST} !^www\. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # REDIRECT TO UNDER CONSTRUCTION …
Amount is not deposited in users account in stripe
When any user need to deposit amount into another users account then amount is debited from the user but not credited into another account. We need to verify stripe user account. using below legal_entity. address postal_code ssn_last_4 personal_id_number identity_document and for check the status is …
Redirect domain from non-www to www host
To redirect from non-www to www host, just have .htaccess file on your root folder (/var/www/.htaccess) with following code.