A new way to add GeoJSON content into QGIS as a layer

When you need to import a GeoJSON file into your QGIS project, you just need to drag & drop the GeoJSON file from File Browser.

Adding a GeoJSON file as a layer is easy as drag & drop action

However, if the GeoJSON content you want to import is not in a file already, then you need to first create a file with this content and import it as shown above. This workaround could be time-consuming especially if you just want to visualize the GeoJSON to see where geometries are located on the map together with other layers repetitively.

On the other hand, you may ask why not just use geojson.io for this purpose. It is a valid question if your data is in WGS-84 (EPSG:4326) or Web Mercator (EPSG:3857) coordinate systems and you don’t want to see your data along with other layers, but if you need to visualize GeoJSON content in different coordinate systems with other layers, you had to follow the solution above until now.

Continue…

My debloating experience with Poco F3

i01.appmifile.com/webfile/globalimg/MandyZhang/...

I recently bought a Xiaomi Poco F3 (128GB) at £234 from Xiaomi UK website. I think it is great hardware at this price. I have been using iPhone for the last three years (XR->11->12). Once I saw this deal on hotukdeals website, I thought I should give it a try to Android after three years. I knew it will come with a lot of bloatware and I cannot uninstall them in a normal way, but I was ready to deal with it a hard way.

Continue…

Build an SMS Forwarder with Raspberry PI Zero W and Waveshare SIM7000E hat

In this guide, I will explain how to receive SMS messages and forward them to your Telegram account using Raspberry PI Zero W and Wireshare GSM hat.

Python will be used to read SMS messages and forward them to Telegram Bot API. Messages will be listened to by Gammu SMS service and it will trigger the Python script when an SMS message received.

Continue…

Delete Azure Blob Files Only In a Folder

If you are looking for a command to delete Azure blob files in a folder with one command, here is the solution;

Continue…

A solution to make PowerBI Direct Query Reports parametrised in CI/CD pipeline

PowerBI REST APIs are very limited with restrictions for specific usages. One of the restriction is that you cannot update parameters on your PowerBI dataset via APIs if you’re using Direct Query. It is a problem if you want to have a master template PowerBI report and create reports based on the master for each different project with different parameters.

Continue…

Export Bunq account statements for UK visa application via Bunq’s APIs

Six months ago, I applied to UK visa together with a solicitor. My solicitor asked me to provide daily bank statements for the last three months to prove that my account balance never down below asked level by Home Office. At that time, I was using Bunq and had a chat with Bunq support, and I was told that it is not possible via application unless I export statements day by day. That means I had to do some actions for 90 times. Thank god, I’m a developer and Bunq provides API that can automate it.

Continue…

Export MS SQL tables to Parquet Files

The following code exports MS SQL tables to Parquet files via PySpark. It can be used in tables that do not have an indexed column with the numerical type (int, float, etc.).

Continue…

Partition Parquet File by Date

The pyspark script below can split one single big parquet file into small parquet files based on date column.

Continue…