Note: Meta now provides built in mechanism for user's location request (likely since Q1 2023) in this API documention Whatsapp Business API is usually used by business organizations or companies to communicate with their customers. In some cases, the company’s application server, e.g. CRM application, might need to know customer’s current location. However, Whatsapp API doesn’t provide such information, except if customer shares his/her live location which most customers will not going to do. Meanwhile, most CRM applications actually only needs customer’s location in one-time-only manner. We know that Internet browser can capture user’s location with user consent. So, the workaround is basically asking customer to open webpage which its Javascript will capture customer’s current location and send it to company’s application server. This is the flow of the basic functionality: SVG File whatsapplocator.svg The demo of explained method can be accessed IN THIS LIN...
I deployed Linux based X2GO remote desktop server for vendor access that works in low bandwidth, allows vendor to upload files but not to download file, and also only allows 1-way clipboard transfer from client to server. Such remote desktop capability is needed because some management tools are graphical applications, e.g. web based configuration tool. Regular VPN can provide the connectivity but giving VPN access directly to vendor server will allow them to download data easily. This situation violates data privacy regulations in many countries which requires company to prevent leaks of customer data. Using Microsoft Windows based platform is not an option as it will need Microsoft RDS/VDA license for every user. Regular remote X Window is also not acceptable due to high bandwith requirement. I tried several low bandwidth Linux based remote dekstop platforms, e.g. XVNC, XRDP and non-free NoMachine, but X2GO is the best for my need. X2GO works by compression remote ...
Shaka Player documentation: https://shaka-player-demo.appspot.com/docs/api/index.html Media URL (MPEG-DASH *.mpd or HLS *.m3u8): Subtitle: DRM Type & License URL: Apple Fairplay Google Widevine Microsoft Playready W3C Clear Key NO DRM
I made this high performance Linux Kernel 6.12 LTS for Hyper-V for my self learning lab. Why Hyper-V? Because it's availabe for free in Windows Pro since 8.1 Pro. It is also Type 1 hypervisor, similar to VMware ESX or KVM, so it's much more faster than Type 2 hypervisor such as VMWare Workstation or VirtualBox. It boots in 6 seconds and whole OS needs less than 400MB of RAM. The kernel config is based on latest Oracle UEK8 kernel configuration that is applied to kernel 6.12 LTS. The high performance is gained by enabling and disabling some kernel options/components: Enabled: Hyper-V DRM, instead of Hyper-V framebuffer; AES-NI and AVX hardware accelerated encryption method as built-in, not module; etc. Disabled: 32 bit support; non AMD cpu (I compiled this kernel using native flag in AMD Zen4); Virtualization host; Many physical hardware drivers; NVME; KVM; Xen; Vmware; ACPI thermal, CPU frequency, power supply; Linux security models (SELinux, AppArmor, etc....
Previously, I posted article about having each new sentence starts at new line increase readability . We can also make Wikipedia pages to be that way for both desktop and mobile mode, as seen in screenshots below, by adding custom Javascript in user preference setting. You will need to create Wikipedia username and login using that username to be able to store the custom Javascript. I will also add steps to enable Dark mode and change font color to Red Orange to further enhance readability. Sample screenshots comparison between default and new-lines pages using Wikipedia page https://en.wikipedia.org/wiki/Tensor_(machine_learning) New-lined Mobile Mode Default Mobile Mode New-lined Desktop Mode Default Desktop Mode Configuration Steps: Open Wikipedia, login then open User Preferences page: Put code below into Custom Javascript . It ad...
Microsoft Word has capability to automatically arrange table's row width and column height. The reformatted tables are simply better than manual arrangement and it works on tables containing merged columns. I created Word macro below that will automatically reformat all tables in single macro execution. It resizes all cells' width and height to fit the content so the table takes least vertical space while maximizing available horizontal space. This makes the table contents are easier to be read. To create the macro, open View ribbon in Microsoft Word then click Macro > View Macro . Type TidyTable in Macro Name then click Create . Enter the macro code text below into the editor then Save and close the macro editor window. Sub TidyTable() Options.ReplaceSelection = True For Each aTable In ActiveDocument.Tables With aTable .TopPadding = InchesToPoints(0) .BottomPadding = InchesToPoints(0) .LeftPadding = InchesToPoints(0.03) .RightP...
Shaka Player documentation: https://shaka-player-demo.appspot.com/docs/api/index.html Media URL (MPEG-DASH *.mpd or HLS *.m3u8): Subtitle: DRM Type & License URL: Apple Fairplay Google Widevine Microsoft Playready W3C Clear Key NO DRM
Comments