Tags
, ,

Shopify Order Count and List APIs Do Not Return Correct Data

Well, not 100%, but it’s partially incorrect in my experience.

I was working on a Shopify-related project to make live integration for order fulfilment (in Shopify) with one of the shipping companies in Indonesia. One of the goal I want to achieve is to display the number of orders and list of orders. They should be filtered by two parameters: orders are paid, but not yet fulfilled.

I am not sure about the problem, because previously everything worked without any issues. If the count shows 5 orders, I can see the list of 5 orders. Previously, I used the 2020-07 API version. But, using the latest version (2020-10), I got the same results.

Order APIs

To retrieve the number of total orders, we can use /admin/api/2020-10/orders/count.json API endpoint. Because I need to get the paid and unfulfilled orders, I add two parameters: financial_status=paid and fulfillment_status=unfulfilled. I got this following response:

{
"count": 4
}

To retrieve list of orders with the filters I want, I use /admin/api/2020-10/orders.json API endpoint. Adding same parameters (financial_status=paid and fulfillment_status=unfulfilled), I expect to get all paid and unfulfilled orders. But I got nothing in the response.

{
"orders": []
}

It does not always empty, but sometime the API gives less number of orders. Maybe I should check again with different parameters.

Tags
,

Gusti Kanjeng Ratu Hayu: Being a Modern Royal Javanese Princess

Princess Hayu grew up in a Royal Family which never told her to conform to society’s perception of how a royal princess should be. Therefore, she went her own way and became an IT specialist. She believes that despite the existing patriarchal culture, women are capable of defying stereotypes and build their paths to success.

Tags
, ,

WP-CLI Error: PHP Deprecated: implode(): Passing glue string after array is deprecated.

I use WP-CLI to maintain my WordPress sites. It’s simple, it handy, and it works without any issues.

For example, I can updates all my plugins and themes (if updates are available) by executing wp theme update --all and wp plugin update --all. If WordPress core engine is available, I only need to run wp core update.

But there is a problem when I update WordPress plugins recently. Running wp plugin update --all to update all available plugin updates give me an error:

PHP Notice:  Trying to access array offset on value of type null in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 663
Notice: Trying to access array offset on value of type null in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 663

But, all updatable plugins were updated successfully. I tried to find the solutions, but I found nothing. I also try to use the nightly version via wp update --nightly, but still no luck.

Here are my wp --info

OS: Linux 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64
Shell: /bin/bash
PHP binary: /usr/bin/php7.4
PHP version: 7.4.3
php.ini used: /etc/php/7.4/cli/php.ini
MySQL binary: /usr/bin/mysql
MySQL version: mysql Ver 8.0.21-0ubuntu0.20.04.4 for Linux on x86_64 ((Ubuntu))
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/path/to/my/directory/
WP-CLI packages dir:
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.5.0-alpha-068c252

Tags
, ,

IDR75,000 Go-Food Vouchers for Google Local Guides Users

Not sure how many Local Guides contributors got this vouchers, but I got one. This perks was sent to my inbox: IDR75,000 (US$5) Go-Food voucher!

Of course, it did not take long for me to redeem it on my Gojek app. And, I use this voucher within minutes.

Tags

25 fundamental email issues

HEY, a new email service by Basecamp, has plan to solve some fundamental issues with… email. HEY has the list of fundamental issues with email. It’s a long list, but I agree with most of them.

Tags
, , , , ,

Fourth year: LastPass

This month, I renewed my LastPass subscription for the next twelve months. This time, LastPass does not increase its subscription price. It’s still US$36/year.

I am still pretty happy with it. I was thinking of cheaper solution that offers similar features, but for know, I could not find one.

So, let’s stick to it for now.

Tags
,

COVID-19 dan Yang Terdekat

Puji Tuhan, sampai dengan hari ini diberi kesehatan. Membaca perkembangan COVID-19 melalui media daring di dunia, khususnya di Indonesia makin hari kok rasanya makin mengkhawatirkan. Saya bukannya tidak optimis bahwa wabah ini akan segera selesai, tapi bagaimana pemerintah menyikapi kok sepertinya sangat jauh dari harapan ya…

Sejak wabah ini muncul di pemberitaaan, apa kata pejabat di pemerintahan? Seorang menteri kesehatan di republik ini saja berkomentar yang secara impresi memperlihatkan ketidakseriusannya. Entah apa motifnya. Menghindari kepanikan? Mungkin. Karena memang tidak tahu? Entah. Terkesan sombong? Tidak tahu juga.

Tentu saya memiliki kekhawatiran. Apalagi, beberapa kerabat dekat saya juga suka tidak suka akan berada dalam kondisi yang memiliki risiko.

Adik saya, bekerja di salah satu rumah sakit swasta di Jogjakarta. Adik saya yang lainnya — cowok, dulu sekolah di perawatan — sebelum wabah ini makin besar bekerja memeriksa kesehatan pengemudi truk yang melintas pada pagi hari di area pinggir propinsi.

Tante saya, punya sebuah klinik di daerah Jogja bagian timur. Dimana kliniknya juga melayani beberapa pasien jika memang perlu rawat inap. Beberapa teman sekolah juga ada yang menjadi dokter dan bidan di luar Pulau Jawa. Ada teman dalam kumpulan yang bekerja di salah satu rumah sakit rujukan COVID-19.

Saya kenal dengan mereka. Dan, saya yakin lebih banyak orang yang memiliki kondisi yang jauh lebih tidak mengenakkan dari saya.

Tetap sehat, kalian semua.

Tags
, ,

Pembayaran Menggunakan DANA di App Store

DANA adalah salah satu dompet digital yang saya pakai. Saya cukup nyaman menggunakannya, salah satunya karena melalui DANA saya bisa melakukan transaksi dengan kartu kredit saya jika kebetulan saya tidak ada saldo. Alih-alih melakuan top-up ke saldo, saya bisa langsung transaksi dari kartu kredit saya.

Selama saya menggunakan produk Apple, proses pembayaran selalu saya lakukan dengan kartu kredit. Namun, ternyata DANA sudah dapat digunakan — selain kartu kredit tentunya — sebagai metode pembayaran. Informasi ini dapat dilihat dari laman metode pembayaran yang dapat digunakan dengan Apple ID.

Menghubungkan akun DANA ke metode pembayaran

Karena saya tidak punya iPhone, saya mencoba menghubungkan akun DANA saya dari iPad. Dan prosesnya cukup sederhana.

Saya belum melakukan transaksi langsung menggunakan DANA di App Store ini. Mungkin nanti. Kalau bisa, saya lebih memilih untuk membayar langsung dari saldo DANA saya.

Tags
, , , , , , , ,

macOS Catalina

Kemarin, saya melakukan perbaruan sistem operasi di MacBook Pro saya dari macOS High Sierra ke macOS Catalina. Dengan begitu banyak fitur dan perbaikan yang ditawarkan, sebenarnya tidak terlalu banyak fitur yang saya akhirnya manfaatkan.

Beberapa highlight mengenai yang baru di macOS Catalina bisa dilihat dalam video dibawah ini. Apple juga menyediakan halaman khusus mengenai apa yang ditawarkan oleh sistem operasi versi terbaru mereka.

Saya sendiri saat ini hanya menggunakan dua produk Apple dan saya bukan termasuk yang ingin melengkapi diri dengan produk terbaru dari Apple. MacBook Pro Retina 15″ saya keluaran mid-2012, dan ada sebuah iPad Mini 2 yang tidak mendapatkan dukungan iOS 13. Namun, saya mungkin termasuk yang sebisa mungkin memperbarui aplikasi atau sistem operasi — jika memang masih bisa diperbarui.

Perbaruan sama seperti proses sebelumnya. Sempat saya ragu, apakah saya perlu menunggu terlebih dahulu untuk memperbarui atau langsung saja. Kemungkinan terburuk paling ada beberapa aplikasi yang belum diperbarui jadi tidak dapat digunakan.

Musik, podcast, dan TV

Salah satu perbaruan yang cukup besar ada pada fitur hiburan. Namun, sepertinya tidak ada yang akan saya pakai. Untuk musik — termasuk mendengarkan podcast, saya lebih sering mendengarkan Spotify (dengan berlangganan Spotify Premium). Kalau menonton film atau video, pilihan saya ke Netflix dan YouTube. Bagi saya, layanan yang saya pakai tersebut sudah mencukupi kebutuhan saya.

Photos, Notes, Reminder

Aplikasi Photos, Notes, dan Reminder juga mendapatkan perbaikan. Namun, saya saat ini sudah cukup nyaman dengan menggunakan Google Photos. Saya hampir tidak menyimpan foto — dari kamera ponsel Android — di MacBook. Semua langsung saya unggah ke Google Photos. Untuk pencatatan, saya paling sering masih menggunakan Google Keep. Reminder saya jarang gunakan. Kalaupun perlu reminder paling hanya berupa alarm atau saya buat saja di Google Calendar.

Jadi, semua perbaruan terkait fitur diatas sudah cukup terfasilitasi oleh layanan Google di ponsel Android. Soal sinkronisasi juga tidak ada masalah sama sekali.

Tags
, ,

Adding Block Storage to an Existing Cloud at Linode

This site is hosted at Linode’s smallest package. Besides this blog, I have some other domains and small WordPress-based sites here. Most of them are not busy site. So, $5/mo is just gret. But, there is a small problem: storage.

Yesterday, I almost utilised 95% of the 25GB of storage limit. I was thinking of upgrading the to the higher specs. $10/mo is still a good deal. But, I only need the storage at this moment. Paying $10/mo will give me additional 25GB of storage.

I already knew that Linode also provides block storage, and I never looked up for this addons. So, I gave it try and tried to prove that the how-to works as written. So, from the panel, I chose to add 20GB of storage and follow the instruction in the input fields.

It took only less than a minute I think to create the disk storage.

Once the disk created, I only need to run some commands as instructed in the configuration page. It was that simple.

After that, I moved some of my files to the new partition, and changed some configurations. Also, I moved MySQL storage to this partition, because it utilises the most. the process also pretty straightforward.

And, I only need to pay extra $2/mo for 20GB additional storage.

Nice!

Tags

Database of dimensioned drawings

Dimensions.Guide is a comprehensive reference database of dimensioned drawings documenting the standard measurements and sizes of the everyday objects and spaces that make up our world.”

For example, this is how Marvel’s Iron Man compared to Thanos and Spider-Man.

Tags
,

WordPress’ Gutenberg New Editor. Yes or No?

I have been using Gutenberg on this site once it was available last year. I have been witnessing how WordPress changed its editor time to time. From its very simple editor, more complex, to the latest one.

WordPress’ Matt already posted a very long Q&A on Gutenberg. I think the article already covered the big ideas behind Gutenberg. At the moment, Gutenberg works really well with the theme I currently using, Atomic Block. It just works.

But again, it’s all about text editor. For regular WordPress user like me, Gutenberg works really well. I mean, I could have what I expect from a text editor. Reading from the plugin page, it seems that there are many unhappy users.

Back to the question. Is Gutenberg a Yes or a No? For me, it’s a Yes.

Tags
, , , , , , ,

OpenVPN Setup on Ubuntu 18.04 LTS

I could not remember exactly when I setup OpenVPN for the first time. As far as I remember, it was not an easy task. But, I need to have it installed, and I found it easier. Probably, because it’s easier to setup on Ubuntu 18.04 LTS?

I need to have it setup because I have some sites blocked by my internet provider. Using Google’s DNS (8.8.8.8) or even ClouFlare’s 1.1.1.1. did not help either. Changing the DNS made my internet connection do not work.

So, I need to set OpenVPN up somewhere. I was thinking of having it setup on my own cloud server at Linode. Lucky that there is a straight-forward tutorial on how to setup OpenVPN on Ubuntu 18.04 LTS. I will write it down also here for my personal documentation.

Installation

First, update the system by running apt-get update and then apt-get upgrade. For me this is optional.

Tags
,

Amazon Web Service to Open New Region in Indonesia

Among many services provided by Amazon Web Service (AWS), I use its Amazon S3 more than any other services provided. Lucky that it has Singapore edge location for the service.

In the latest press release, AWS will open a new region in Indonesia. It’s a good news. The only thing AWS users need to do is just waiting for the service to be available, and it is expected to be available in late 2021 or early 2022

Amazon Web Services, Inc. (AWS), an Amazon.com company (NASDAQ: AMZN), today announced it will open an infrastructure region in Indonesia by the end of 2021 / early 2022. The new AWS Asia Pacific (Jakarta) Region will consist of three Availability Zones at launch, and will be AWS’s ninth region in Asia Pacific, joining existing regions in Beijing, Mumbai, Ningxia, Seoul, Singapore, Sydney, Tokyo, and an upcoming region in Hong Kong SAR. Currently, AWS provides 61 Availability Zones across 20 infrastructure regions worldwide, with another 12 Availability Zones across four AWS Regions in Bahrain, Hong Kong SAR, Italy, and South Africa expected to come online by the first half of 2020.

Amazon Press Release, April 3, 2019: AWS to Open New Region in Indonesia

Tags
, , , , ,

Third year: LastPass

I started using LastPass for my password manager application in March 2017. So, this year, it’s my third year now. Before LastPass, I used 1Password. I didn’t remember the exact reasons why I switched to LassPass, but I think it was about the integration with applications in mobile devices.

I am satisfied with LassPass features. For some people, Google’s Password Manager will work. But, when it comes to more complex password and identity management, I think LassPass fits me more.

Is LassPass free? Unfortunately, not. I started my subscription for US $12/year (for Premium package). A year later, LassPass increased its pricing to US $24/year. And, this year, they increased the subscription pricing again to US $36/year.

Hat tip: LassPass was acquired by LogMeIn back in 2015.

LassPass offers competitive pricing compared to its competitor like DashLane (US $40/year), 1Password (US $36/year), and Keeper (US $30/year). Since LassPass works for me (until today), I think I will keep my subscription.