Another example explanation:
Friday, December 29, 2017
Wednesday, December 27, 2017
Perbandingan Paket Internet
Dari MNC PLAY
http://mncplaybandung.com/high-speed-internet
INDIE HOME
http://www.indihomebandung.id/2017/03/update-harga-paket-langganan-indihome.html
BIZNET
https://www.biznethome.net/id/service/biznet-home-internet/
http://mncplaybandung.com/high-speed-internet
INDIE HOME
http://www.indihomebandung.id/2017/03/update-harga-paket-langganan-indihome.html
BIZNET
https://www.biznethome.net/id/service/biznet-home-internet/
Friday, December 22, 2017
Wednesday, December 20, 2017
SmartyDebug in CiviCRM
To use SmartDebug in CiviCRM, first we need to enable the debug mode first. Please see this post for enabling it.. Aand then... just put "&smartyDebug=1" at the end of each url in CiviCRM. For example if we open a page in civiCRM like this :
So just put "&smartyDebug=1" at the end of the url so..
That's the smart debug pop up... ;D
Don't for forget to enable pop up on your chrome .... ;)
Good luck... B-)
So just put "&smartyDebug=1" at the end of the url so..
That's the smart debug pop up... ;D
Don't for forget to enable pop up on your chrome .... ;)
Good luck... B-)
Tuesday, December 19, 2017
Friday, December 15, 2017
Wednesday, December 13, 2017
How to check object property in Node.js
Here's the way...
Result :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | var my_obj = { name : "Hisoka", skills: "Bungejigum" }; if(my_obj.hasOwnProperty('status')) { console.log(" my object has status property"); } else { console.log(" status is NOT in there"); } if(my_obj.hasOwnProperty('skills')) { console.log(" my object has skills property"); } else { console.log(" skills is NOT in there"); } /** * Another way for checking property is using 'in'. * but BE CAREFUL! The in operator matches all object keys, * including those in the object's prototype chain. * So it's preferred to use hasOwnProperty */ console.log("\n"); if('status' in my_obj) { console.log(" status is in there"); } else { console.log(" status is NOT in there"); } if('skills' in my_obj) { console.log(" skills is in there"); } else { console.log(" skills is NOT in there"); } |
Result :
Tuesday, December 12, 2017
oauth.access response - slack api
Official documentation :
https://api.slack.com/methods/oauth.access
Here's the response example (for incoming web hook scope):
For button with bot scope :
https://api.slack.com/methods/oauth.access
Here's the response example (for incoming web hook scope):
For button with bot scope :
Karmabot_poipo support page
Thanks for using karmabot_poipo... Please write your complain at the comment form below... :)
Karmabot_poipo landing page
ERR_SSL_VERSION_INTERFERENCE google mail
Disable tls 1.3 or go back tls 1.2. In this post I just disabled the tls 1.3 for quick solution... :v
open :
chrome://flags/
open :
chrome://flags/
Monday, December 11, 2017
Identifying DIRECT_MESSAGE, CHANNEL_MESSAGE, & GROUP_MESSAGE in Slack API Event
A simply way to determine if a message is a DM or not; if a channel ID begins with a:
- C, it's a public channel
- D, it's a DM with the user
- G, it's either a private channel or multi-person DM
However, these values aren't set in stone and could change at some point, or be added to.
So if that syntax goes away, another way to detect a DM to use both channels.info and groups.info. If they both return “false” for the “ok” field, then you know it’s a DM.
Note:
- channels.info is for public channels only
- groups.info is for private channels and multi-person DMs only
Bonus info: Once you detect a that a message is a DM, use either the user ID or channel ID and search for it in the results of im.list; if you find it, then you’ll know it’s a DM to the bot.
- “id” from im.list is the channel ID
- “user” from im.list is the user ID from the person DM’ing with the bot
- You don’t pass in the bot’s user ID, because it’s extracted from the token
Private channel is 'W
Source :
https://stackoverflow.com/questions/41111227/how-can-a-slack-bot-detect-a-direct-message-vs-a-message-in-a-channel
Saturday, December 9, 2017
Slack USERS.LIST api test using nodejs
Official documentation :
https://api.slack.com/methods/users.list
Here's mine using node js
Full source code :
https://github.com/HyosokaPoipo/slack_api_test/blob/master/poipo_request.js.
Look at function named poipo_request_slack_users_list
https://api.slack.com/methods/users.list
Here's mine using node js
Full source code :
https://github.com/HyosokaPoipo/slack_api_test/blob/master/poipo_request.js.
Look at function named poipo_request_slack_users_list
Slack API.TEST using Node.js
Official documentation :
https://api.slack.com/methods/api.test
My request :
Response:
Full source code can be found in my github here :
https://github.com/HyosokaPoipo/slack_api_test
Search for poipo_request.js
https://api.slack.com/methods/api.test
My request :
Response:
Second Way :
Full source code can be found in my github here :
https://github.com/HyosokaPoipo/slack_api_test
Search for poipo_request.js
Friday, December 8, 2017
DELETE and GET Index Elasticsearch using CURL
Thursday, December 7, 2017
Property of boot before and after invitation - Slackbot_RTM
Tuesday, December 5, 2017
Saturday, November 25, 2017
Installing Webform Module in Drupal 7 - Windows 7
First step... Download the webform module from https://www.drupal.org/project/webform
{https://ftp.drupal.org/files/projects/webform-7.x-4.16.zip}
Neext... Open module tab... and then choose "Install new module"
Browse the webform zip file then hit "Install" button
Just wait for several seconds.... :)
If we go back to module, we can the webform desc rightnow...
Buut.. unfortunately, it needs Ctools and Views... :D
So we need to install them also.... Installation steps are same like above... Just download the zip files..
Ctools:
https://www.drupal.org/project/views
https://ftp.drupal.org/files/projects/ctools-7.x-1.12.zip
Views:
https://www.drupal.org/project/ctools
https://ftp.drupal.org/files/projects/views-7.x-3.18.zip
After installing those 2 modules, we need to enable them like this
After hiting "Save configuration" button....
Okaaaay.... That's all.... :)
ooowh... If we want to add a new webform, we can click "add content" as shown on the picture below
{https://ftp.drupal.org/files/projects/webform-7.x-4.16.zip}
Neext... Open module tab... and then choose "Install new module"
Browse the webform zip file then hit "Install" button
Just wait for several seconds.... :)
If we go back to module, we can the webform desc rightnow...
Buut.. unfortunately, it needs Ctools and Views... :D
So we need to install them also.... Installation steps are same like above... Just download the zip files..
Ctools:
https://www.drupal.org/project/views
https://ftp.drupal.org/files/projects/ctools-7.x-1.12.zip
Views:
https://www.drupal.org/project/ctools
https://ftp.drupal.org/files/projects/views-7.x-3.18.zip
After installing those 2 modules, we need to enable them like this
After hiting "Save configuration" button....
Okaaaay.... That's all.... :)
ooowh... If we want to add a new webform, we can click "add content" as shown on the picture below
Subscribe to:
Posts (Atom)