Don’t Get Clever with Login Formspermalink

bradfrost.com

Quite a good explanation how login fields should be and should not be done. It’s a common mistake that plenty of websites make. And very a few get them right. Login Forms, are of utmost importance when it comes to user-experience. Yet, a lot of websites fail at getting the basics right.

Saturday, February 16, 2019

How to disable Gutenberg Editor without a Plugin

Since ever Gutenberg was made part of the core WordPress, I have been pulling my hair like you. Even before that when it was in beta, and was offered as a plugin it had gotten a measly 2.5 rating stars. Yet the WordPress Team went on to make it the part of the core.

There are a couple of plugins, that can disable the Gutenberg editor for you, and bring back the old Editor, however I am never in favor of using a plugin what a single line of code can do for you. Simply put either of these lines of code in your themes’ functions.php file.

// disable for posts
add_filter('use_block_editor_for_post', '__return_false', 10);

// disable for post types
add_filter('use_block_editor_for_post_type', '__return_false', 10);

Phew! It would disable the Gutenberg, and bring back the Old Editor and things will go on as normal as they did before.

Monday, February 11, 2019

Chinese New Year of the Pig

Omg! It’s Chinese New Year of the pig., I’m not sure if in the Chinese culture this animal is despised or revered., but this has resulted in a dilemma for the Emirates Airline I saw their ad wishing a new year without mentioning the said animal. Pig is still a derogatory term in English while bacon is revered 😋. Let’s hope the year of the pig may bring tariff down, economy back on the roll and Huawei out of the hot waters. IMG

Wikipedia
Chinese New Year of the Pig (Zodiac) en.wikipedia.org
The Pig (豬) is the twelfth of the 12-year cycle of animals which appear in the Chinese zodiac related to the Chinese calendar. In the continuous sexagenary cycle of sixty years, every twelfth year corresponds to hai, 亥 (the twelfth of the twelve Earthly Branches); this re-recurring twelfth year is commonly called the Year of the Pig (豬年).
Monday, February 4, 2019

Server Upgrade

Server OS (Ubuntu) upgrades are pain in the arse, what I don’t get, why would it simply upgrade and not respect the previous modules (PHP) installed, most LTS come with the newest version of PHP, but then you are left with a blank page, because you have to reinstall the required modules for your script again. Billion of things can go wrong that can cause it, then you have to wade through error.logs to see what caused it. It’s heart wrenching when you see a blank page or 500 error of your website. That was working fine moments ago.

It could place a simple check, I upgraded 4 servers, and all from command line, it’s interesting to watch, what is packed, upacked, checked, removed … and so on… zillion of processes. (most Desktop users don’t get to see it., they only see a pretty progress bar! ha ha!)…. Why can’t it simply make another check among billions others for ‘already installed modules’ (PHP) and install them too while at it. It’s been four years since I moved to self-managed servers, so the upgrade was inevitable. PHP 5 and Ubuntu 14.04 reached EOL. all upgraded to PHP 7.2 on Ubuntu 18.04 the latest LTS. On a bright side, I also added dozen of new Linux and apache commands to my vocabulary. It’s all about Linux and Apache for the LAMP stack during server upgrades.

Friday, February 1, 2019

Slack's New Logopermalink

slackhq.com

Raise your hands if you like slack’s new logo. I don’t wanna be a nitpicker, but I don’t like it. however I get it. it looks like a workstation., implying collaboration. But still it’s not up to mark. If a logo change is followed by a philosophical blog post, my educated guess is, they know it too.

However I am glad, they only changed logo, not a free plan to paid one. They once lured me, by enabling a paid plan, then told me, it has expired, either I pay to continue or switch back to free.

Thursday, January 17, 2019

GoDaddy is sneakily injecting JavaScript into your website and how to stop itpermalink

www.igorkromin.net

Igor Kromin

I recently started having issues with the admin interface of a website I run and decided to check the browser console to see if any errors were being displayed there. There were and among them was an error stating that a JavaScript map file being loaded (and failing) that I did not recognise. This meant that the actual JavaScript file itself was already loaded via my website. This set off all sorts of alarms for me and I started to dig in further.

When I was a diaper-wearing Kid, I registered my first ever domain using Godaddy. They aggressively advertised and so therefore I ended up on their website. Even back then I hated their website, with car racing models IMG. This is not what you would expect to see on a domain name registrar website. It was totally out of place.

And we all know what sort of company it is. VID .. Yep! It was a great marketing stunt from a general consumer point of view, however most of the professional developers community is gonna find it gross1.

As soon as I reached puberty, I realized it was the most stupid mistake, it was not only expensive comparatively but also had suspended my account twice over login issues. Since then I moved over to NameCheap (everyone’s favorite) and never looked back.


1. Few years ago, they changed the website branding and made it developer friendly., as it was acquired by the equity consortium., and the original founder Bob Parsons left.

Monday, January 14, 2019

The man who married a hologrampermalink

edition.cnn.com

Emiko Jozuka

Akihiko Kondo doesn’t have the air of a rebel. This year, however, the bespectacled school administrator bucked conventional norms. He married a hologram. Kondo’s November wedding to cyber celebrity Hatsune Miku — which is not legally recognized.

I don’t find myself being fond of his sexual fantasies, however economically he perhaps made a good choice, living in one of the most expensive places on earth, Tokyo, Japan. But wait … it’s kind of Meh at the same time too. 😐

Saturday, December 29, 2018

A DHL Package from China

So everyone knows, I work 7 days of the week, and Sunday is no exception, so this morning I had received an email with a zip file. Honestly I am always very wary of opening of Zip files, you never know what is packed inside.

But it looked like a gentle email requesting our services to clear his DHL package that he had received from China. So I unzipped the file, and there were 7-8 docs inside., and then suddenly the description of goods caught my eye Bam! ‘silicon sexual toy’ .… and I kind of jumped out of my chair, and carefully observed the sender of the email, he looked like a 26 yo bloke working in a far far away factory, and he had given his room address. I could understand his pain, he perhaps got tired of watchin’ pr0n and fapping on his laptop screen, and now wanted the next level of fun., during those lonely-factory-night-shifts. But sadly we are a very modest company.

Sunday, September 23, 2018

Impact of US – China Trade War on Vietnampermalink

www.vietnam-briefing.com

If the tariffs are strictly restricted to China and do not affect the cross-border supply chain, Vietnamese exporters will be more competitive and will see an increase in demand for their products, especially textiles and garments.

Yeah I have been pondering over it, how this would effect the Vietnam exports, they are likely to have very competitive advantage and increase in the demand exponentially.

Thursday, September 20, 2018