Categories
PHP

Khmer Text on PDF, Works on mPDF

Here, how the story could explain in this result As you see, it’s working! mPDF (https://github.com/mpdf/mpdf) is originally extended from FPDF (http://fpdf.org/) It has some wrapper such as in Laravel and other PHP framework. To make it works, we need to understand how to put the custom font and in mPDF it has a configuration […]

Categories
Khmer Unicode

Next Army: Pandoc?

Just come across on StackOverflow when trying to look around if any topic related to Khmer Unicode case. I got interesting on this post, technique to convert document with Khmer text to pdf, so likely it can do something more fun with our Khmer language. So, here is using the Pandoc, a universal document converter […]

Categories
General

Vue ChartJS – Pie/Doughnut – Outlabel

By default, the chartjs, chart type: Pie or Doughnut, we can have label inside or as legend, see at: https://www.chartjs.org/docs/latest/charts/doughnut.html To have out-label as above image, will need some challenge as specially with vuejs. The issue as stated in VueChartJS#20, I faced that too. Plugin I finally used “chartjs-plugin-piechart-outlabels” plugin and to challenge the issue#20 […]

Categories
NodeJS

Offline Web App (PWA) – Reading

Offline Web App that could come with the server-side, we need to learn some technique. Of course, we can use JS LocalStorage but it’ll not enough or good enough to serve for some complex data/process, we need one that can access faster, thanks to “LocalForage” library that can be used like “Local Storage”. Somehow, I […]

Categories
Windows

Windows 10 : Recently Search Box Show Black Screen

It happens around 5th of February, 2020 until now and I just found out that it also mentioned on another website, zdnet. The solution is: Start Windows PowerShell, Run as Administrator Reinstall and re-register Cortana fixed it. Run the following in an elevated (thanks to commentor dfrazier603) Get-AppxPackage -AllUsers Microsoft.Windows.Cortana | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register […]

Categories
PHP

Laravel : Customize Pagination on API Resource Collection

Laravel from 5.5 / 5.6 has been tested with this solution! You want to wrap your model collection into a resource collection but as you might using the Vue-Pagination which need to be outwrapping the meta and links key. So, you want something as expected output above related to pagination keys. In short, here is […]

Categories
PHP Website

Tips: The site is experiencing technical difficulties

Open the website, you receive a message: “This site is experiencing difficulties.“ And if you open admin page, it added another detail as: “This site is experiencing difficulties. Please check your site admin email inbox for instruction” So it’s telling you check email of an Admin user and of course, if you are lucky, you […]

Categories
Windows

Windows 10: Change Language Case

On my Windows 10 Pro / Microsoft Surface 6 Pro, I did a setup wrong from the beginning to select UK as my language/keyboard and it’s likes nightmare as I cannot completely remove it, it did remove each time I tried around such as follow this post, or this post, etc. as it may randomly […]

Categories
How-To Java Reporting

Jasper Report: Print Column Footer only at the last page

Report designer mostly said it’s depended on the way you design the report, of course, it does but for some new or even some years report designers still need example, tips to help too. Here, I take this kind of issue/solution that finally I could make it: “printing a signature footnote to the last table […]

Categories
MySQL

MySQL 8 : About GRANT / PRIVILEGES

In previous version of MySQL (before v8), we can grant/create mysql user one and grant it at once to get access by each host (location / 127.0.0.1) base on your mysql config. In MySQL 8, you no longer can (implicitly) create a user using the GRANT command. You need to do by CREATE USER and […]