Last weekend I decided to revisit Unity Framework. This is my second attempt to understand game programming. Few years back, I did installed the framework, and played around with the sample games. But it was a failure. I was overwhelmed by the editor and concepts. I tried to follow the tutorials, but didn’t stick. So I threw my towel.
To avoid repeating my previous failure, I decided to take a different strategy. Fortunately, my workplace provided us with access to O’Reilly library. With high hope, I picked up this book:
I should be able to finish this book by the weekend, or so I thought. By the second chapter, I was already bored from the lack of action. I feel that I need something more direct, hands-on approach in order to keep me going. I don’t want surrender for the second time. Luckily, I found this course on Linkedin Learning:
The course is slated for 2 hours 22 minutes. But it took me the whole day to complete it. You know what, it was really worth it. It really helped me to open my eyes, demystify the concepts and slowly introduce me to Unity Editor. I was never overwhelmed and thoroughly enjoyed the lessons.
I know the course is quite dated. The course is using Unity 5 (was released in 2015), while what I have in my laptop is Unity 2020. But kudos to Unity, there is not much visible differences between the two versions. Despite a 5-year gap, the controls in Unity Editor haven’t changed drastically.
Once completed the course, they gave me this certificate:
If the terms animation, collision detection, prefabs are foreign to you, and you want to learn Unity Framework, I highly recommend the course above. For now, enjoy the fruit of my weekend of animating sprites using C# scripts:
GD Star Rating loading...
About Hardono
Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.
Hi Friends! Yesterday I found out that the Brotli compression is not enabled. I saw this information on this blog’s W3 Total Cache plugin. Since I’m not familiar with it, I decided to research about it.
Brotli is a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling, with a compression ratio comparable to the best currently available general-purpose compression methods. It is similar in speed with deflate but offers more dense compression.
The specification of the Brotli Compressed Data Format is defined in RFC 7932.
To be honest, I don’t understand most of the above sentence. I only know lossless compression (contrast it against lossy compression, e.g. JPEG). Anyway, that’s another research in another day.
Brotli vs Gunzip
I have configured this blog to use gunzip. Is there further benefit of using Brotli? Let’s read Nick’s conclusion:
For 5 paragraphs of lorem ipsum, Brotli beats gzip by 5%. If I run the same experiment with the front page of reddit.com from 10/01/2015, Brotli beats gzip by 22%! Note that both measurements were using the compressors out of the box without any tweaking of configuration values.
This Blog’s Configuration
This blog’s OS:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
Release: 18.04
Codename: bionic
PHP version:
$ php --version
PHP 7.4.24 (cli) (built: Sep 23 2021 21:35:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.24, Copyright (c), by Zend Technologies
NGINX version:
$ nginx -v
nginx version: nginx/1.17.3
Next steps is where we install and configure all the required components in order to enable Brotli compression.
Install Brotli
Installation command:
sudo apt-get install brotli
Command to verify brotli installation:
$ brotli --version
brotli 1.0.4
Now brotli is installed in the system. Let’s continue by working on PHP installation.
Install Brotli Extension for PHP
First we need to install PHP-dev (so we can run phpize):
sudo apt-get install php7.4-dev
Then run the following commands to get the extension’s source code, build and install:
cd /tmp
git clone –recursive –depth=1 https://github.com/kjdev/php-ext-brotli.git
cd php-ext-brotli
phpize
./configure
make
make install
Edit php.ini, add the following (find the location of the commented extension. e.g: ;extension=xxxx.so):
extension=brotli.so
Reload PHP:
sudo service php7.4-fpm reload
sudo service php7.4-fpm restart
## ngx_brotli filter module - used to compress responses on-the-fly.
load_module modules/ngx_http_brotli_filter_module.so;
## ngx_brotli static module - used to serve pre-compressed files.
## Both ngx_brotli modules could be used separately, but part of nginx-module-brotli package
load_module modules/ngx_http_brotli_static_module.so;
Further brotli configuration will be handled by W3 Total Cache. Restart NGINX:
sudo service nginx restart
Enable Brotli in W3 Total Cache
Go to plugin settings, Browser Cache:
We need to enable it in three locations: General, CSS & JS, and HTML & XML. Once we applied the settings, verify the .conf generated in /etc/nginx/available-sites:
Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.
I never professionally dealing with WCF in my working life. All my previous projects were not using WCF. By using, I mean providing services for other systems to consume. If any, they were only consuming web services from other systems. So WCF is one of many areas in .NET-world which I am yet to explore deeply.
But why WCF, and why now? I myself consider this decision to pick up WCF now is quite silly. First, that WCF is no longer actively develop by Microsoft. Second, Microsoft is already working on the replacement (WCF Core). But since it’s not yet production-ready, Microsoft is currently recommending gRPC for production.
But in Singapore, many businesses (especially Government-linked) are fully Microsoft-shop and heavily using WCF. That is my conclusion after seeing many job postings ask for WCF skills. So this is my effort to improve my professional skill, and widen my possible career-net 😀
In order to be able to host WCF projects in my laptop (Windows 10 upgraded to Windows 11), I need to enable IIS. I did stumbled here and there in my progress, so I write it down here for my own future reference. And hopefully, it will also help others. So here’s what I’ve learned.
How To Enable IIS
Press Window button
Type turn Windows features on or off
Select and expand “Internet Information Services”
Select and expand “World Wide Web Service”
Select and expand “Application Development Feature”. Select the .NET version to work with.
Expand “.NET Framework 4.8 Advanced Services”
Select and expand “WCF Services”
Now we need to verify that IIS is able to serve .svc files (Web Service Descriptor, shown below).
Howdy! I'm Hardono. I am working as a Software Developer. I am working mostly in Windows, dealing with .NET, conversing in C#. But I know a bit of Linux, mainly because I need to keep this blog operational. I've been working in Logistics/Transport industry for more than 11 years.