Posts

[Solved] Unrecognized input file format --- perhaps you need -targa

In short, in case you encounter cjpeg error: Unrecognized input file format --- perhaps you need -targa, you can use the command below.

Assume that your JPG image file is source.jpg:

[root@server ~]# djpeg source.jpg | cjpeg -quality 65 -progressive -optimize -outfile source65.jpg

Rename the source file as backup, rename the optimize file to be the one to load.

[root@server ~]# mv source.jpg source.jpg.bak; mv source65.jpg source.jpg

Hope it helps someone.

Thank you.

百日築基

在道家氣功的修煉中,入門後的第一個階段便是築基階段。亦稱:“百日築基”

所謂築基,顧名思義就是打地基的意思。大家都知道,高樓大廈平地起,關鍵在於打好地基,地基打好了才能蓋起大樓來,倘若地基不固,即便蓋好大樓也會傾於一旦。

道家氣功的修煉,猶如蓋大樓一樣,也需要築基,這裡指的築基主要是兩個方面:一是要以所選功法的要求,在明師的指點下,以堵漏失;二是用精、血化氣後形成的體內真氣(生命能量),去疏通、修補身體的病變。

也有部分門派將煉精化氣也歸到築基部分,這是要求比較高的了。

年未滿16、童身未破者,精氣神三全,不需要進行命功修煉,可以直接進行高層性功的修行。

1、堵漏:

男、女性進入青春發育期後,都會出現正常的生理現像,男會遺精,女有月經。這在道家養生學中稱之為“身漏”,即稱“漏身之體”。精與血為人體生命的“至寶”,也是人類繁衍生息的根本。但繁衍生息男無須天天走、女不該月月失。然人類生性貪圖享樂,更戀床地之歡,固造成生命能量的浪費,使元氣走失、疾病叢生而不能怡享天年。故歷來修道仙術的第一步便是“百日築基”即“補缺堵漏”。道家先師呂洞賓所講的“順則凡、逆則仙,只在中間顛倒顛”便是此意。

初習者往往咬文嚼字地去理解氣功術語,以為百日築基,就是一百天完成,其實這裡所指的“百日”並非百天的意思,而是以百日來形容需要較長的時間來完成的意思。

至於到底需要多少天來築基堵漏,這與所選的功法、有無明師指點、練功時的入境程度、每天所化的練功時間、及每個人不同的身體狀況等諸多因素有密切的關聯,無統一標准可循,更不是修煉者的主觀願望所能決定的。

2、修補

所謂修補,指的是修補已漏之身。這裡所指的已漏之身,並不是單純指走精與漏血,主要是指由於體內元氣的走失,造成真氣(生命能量)不足所引起的各種病變。因此,一般人認為未婚男女是童子身、練功無須百日築基的看法無疑是偏面的。

二、關於氣機運行

在醫療氣功(大部分是道家築基功演化而來)靜功的修習中,大部分學員在築基階段,都要經歷得氣、行氣、疏通和衝擊四個過程。

1、得氣

道家氣功的修習,一般通常從“命功”入手,”所謂命功,即築基功。而築基功的下手功夫一般都在下丹田開始,修煉者首先會感受到練功時腹內腸子蠕動增強,頻放矢氣(屁)繼而出現丹田發熱、小腹發熱等得氣現像。

2、行氣

隨著修煉者自身“堵漏”化氣和練功中外氣內收的能量積聚,小腹發熱伴有充實感,這是…

[Suggested Solution] Failed to set session cookie. Maybe you are using HTTP instead of HTTPS

TL;DR: look at your .htaccess file and see if there are any HTTPS related config enabled.  If yes, disable it.
First, please take a look at this issue (Open new window).

In my case, I have a production HTTPS site, while my local development site is just HTTP.
However, since you want your files between development and production are as synchronized as possible, you may not aware that your .htaccess file (assume using Apache), may be the problem.
In my .htaccess, I have these lines:
# https://geekflare.com/apache-web-server-hardening-security/#21-Remove-Server-Version-Banner <IfModule mod_headers.c> # You can replace "PHP" with "-" to completely hide your PHP version Header set X-Powered-By "PHP"
# If HTTPS Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure # If HTTP # Header edit Set-Cookie ^(.*)$ $1;HttpOnly; </IfModule>
Please note that the #If HTTPS is in effect now, but this may affect your server if you are in development/local server.
Just comme…

佛頂尊勝陀羅尼咒 2019

南無    巴嘎瓦帝    德來路戈呀   
巴拉帝    偉施司大呀    布達呀   
巴嘎瓦帝    達地呀它    唵   
偉須達呀    偉須達呀    薩瑪薩瑪   
司曼達    瓦巴薩    司把拉那    嘎帝    嘎哈那   
索巴瓦    威須爹    阿比森    恰圖曼   
蘇嘎它    瓦拉瓦恰那    阿米里達   
比曬該    瑪哈曼德拉    巴戴   
阿哈拉    阿哈拉    阿又索    達拉尼   
須達呀    須達呀    嘎嘎那    威須爹   
屋司尼薩    偉加呀    威須爹   
薩哈司拉    拉司米    三處抵爹   
薩而瓦    達它嘎達    瓦羅卡尼   
沙特巴拉米達    巴里布羅尼   
薩爾瓦    達它嘎達    賀里達呀    帝施達那    帝施抵爹   
瑪哈目德烈    鎢針拉嘎呀    三哈達那    威須爹   
薩爾瓦    瓦拉那巴呀    圖爾嘎帝    巴里    威須爹   
巴羅帝    尼瓦爾達呀    阿又須爹    薩瑪呀    帝施抵爹   
摩尼    摩尼    瑪哈摩尼    達它達    布特括帝   
巴里須爹    偉司波達    菩提須爹   
加呀    加呀    偉加呀    偉加呀    司瑪拉    司瑪拉   
薩爾瓦布達    帝施抵達    須爹   
瓦計里    瓦計拉    嘎爾貝    瓦計蘭    巴瓦度   
麼麼(眾佛子)    舍里蘭    薩爾瓦    薩多南加    嘎呀   
巴里威須爹    薩爾瓦嘎帝    巴里須爹   
薩爾瓦    達它嘎達    希佳美   
薩瑪索薩    呀姆多    薩爾瓦    達它嘎達   
薩瑪索薩    帝施抵爹   
菩提呀    菩提呀    偉菩提呀    偉菩提呀   
布達呀    布達呀    偉布達呀    偉布達呀   
薩曼達    巴里須爹   
薩爾瓦    達它嘎達    賀里達呀    帝施達那    帝施抵爹   
瑪哈目德烈    司哇哈

Facebook Messenger Chatbot: Using NodeJS Fetch function and New Line

Here is the code:

const PAGE_ACCESS_TOKEN = "your_long_FB_page_access_token" let my_return_answer = 'my answer<br>another answer' // Construct the message body let request_body = { "recipient": { "id": senderID // This value coming from webhook_event.sender.id }, "message": { "text": my_return_answer.replace(/<br>/g, "\r\n") } } fetch("https://graph.facebook.com/v2.6/me/messages/?access_token=" + PAGE_ACCESS_TOKEN, { method: "POST", body: JSON.stringify(request_body), headers: { 'Content-Type': 'application/json', }, }).then((res) => res.json()) .then((fb_json) => { console.log({fb_json}) }) - If you are using NodeJS fetch function, please use the above code as reference
- To display new blank line in FB messenger bot, use \r\n as above.

Hope it helps.

[Solved] Wordpress Change User/Admin Email without confirmation/verification

If you see a notice when you update your user email address (not just admin) in Wordpress, and you want to disable it, below is the How-To to fix this problem.

When you change your email address, you may see

    There is a pending change of your email to <some_email_address.>

To solve, in your theme functions.php, add this line (Reference Link here):

    remove_action( 'personal_options_update', 'send_confirmation_on_profile_email' );

Saved and upload to your theme directory.  Fixed!

By the way, in case you want to disable email notification after changing your password, add the following line in your theme functions.php (Reference Link here)

    add_filter( 'send_password_change_email', '__return_false' );

Saved and upload to your theme directory.  Fixed!

Hope it helps someone.

How to use ntpd to setup and sync Hong Kong Time From Gov 2018

Image
First install NTP using: yum install -y ntpd (CentOS) or sudo apt install -y ntpd (Ubuntu)Edit the ntp config file.  Under CentOS it is /etc/ntp.conf
Find the section where it shows:server 0.centos.pool.ntp.org iburstserver 1.centos.pool.ntp.org iburstserver 2.centos.pool.ntp.org iburstserver 3.centos.pool.ntp.org iburstComment it out (Adding # at the beginning of each line):# server 0.centos.pool.ntp.org iburst# server 1.centos.pool.ntp.org iburst# server 2.centos.pool.ntp.org iburst# server 3.centos.pool.ntp.org iburstAdd the following line (as of 10 Dec 2018 from pool.ntp.org).  No need to put # at the beginning.  For latest server list please go to: https://www.ntppool.org/zone/hkserver stdtime.gov.hk preferserver 2.hk.pool.ntp.orgserver 2.asia.pool.ntp.orgserver 0.asia.pool.ntp.orgSave the file and exit.Final output:Stop the service first: systemctl stop ntpd.serviceAfter stopping the service, trigger the synchronization by typing: ntpd -gq to force the sync.  If success, it will …