This blog post is all about how to make an iOS app that completely displaying an HTML5 web app, I mean this app will run local html files with its assets such as JavaScript, css, fonts, images etc. Plus, this blog post demonstrates how to integrate AdMob Banner Ad into this web app. So when…
How to list all files in a directory and read each of them in PHP
This code snippet is useful to me when I need to read all files inside a directory and showing it on web browser in PHP:
Switchable “Camera Follows a Player” accross mutliple scenes in Unity
This is a Unity package file, if you download it and import it on your empty Unity project, you will see a demonstration about a camera that follows an object, and this camera (it’s position) is switchable, you can click a button to switch between multiple camera positions and angles. Plus there are two buttons…
How to switch between camera positions and angles in Unity by C# script
The script inside this package allows you to switch between camera positions so you can switch between camera angles and positions easily with single click button. In this example, there were 3 camera positions that we can switch between them. In this video I also tried to add another camera position (the 4th position). You…
One line PHP code to remove characters except numbers and letters
I found this few lines of PHP script useful to sanitize user input, it removes characters except numbers and letters: Or this one: Original post is here: https://coderwall.com/p/bn47ka/remove-all-characters-except-letters-and-numbers-in-php
HealthCon Responsive HTML5 Website Template
A responsive and excellence HTML5 website with slide-able style menu and sub menu feature for both mobile and desktop version. Below image is the desktop version of this website template: You can view it in action in this video: Get this template from this link: https://creativeshop.ciihuy.com/product/healthcon-responsive-html5-website-template/
How to send POST request to another website from a PHP script
Let’s say we have a website like somewebsite.com and there is an input form, but we don’t want to submit that form from that website, instead we send POST request to that page from another website. Here is a handy PHP script to do so:
Save Android Webview Content as PDF File
Hello everybody! What you are seeing here is an Android app that shows a local html file inside a Web View. Then on top of the web view there is a button to save web view contents as a pdf file. Pdf file is saved localy after you tapped the button and you can open…
PHP listing files in a directory and renaming them
I have a tons of files in a directory that has underscore in their names, and I need to rename them by replacing underscore to dash. I wrote this script in PHP and it worked!
How to make objects facing towards player in Unity
Some of elements in our game probably need to always face towards the player or player’s camera. With this script we can make any object that this script attached on it, to look at a specific object, like player object or a camera.
How to open WebP images in Photoshop – WebP Photoshop Plugin
Finally this plugin solved my problem. Usually when I got a webp images downloaded from internet, I take a screenshot of the image and copy and paste it inside Photoshop. But lucky me I found this plugin from this link: https://endurtech.com/how-to-open-webp-files-in-adobe-photoshop/ Extract the file, and find 32 or 64 plugin file, copy and paste it…
How to make and generateQR Code with JavaScript – Center Align the QR Code
This tutorial is answering a question about how to center align the qr code image generated by qrcode.js library on my previous video: https://www.youtube.com/watch?v=gLLd9YJOJgM&lc And the answer is relatively easy, we can adjust the styling of the div containing qr code image to make it center aligned. You can download the library from here: https://davidshimjs.github.io/qrcodejs/…
How to resize QR Code image generated by phpqrcode library
In this tutorial I will show you how to modify the phpqrcode library to generate more bigger and larger QR Code image. By default if we generate a QR Code of short text or string, we will get a small QR Code image approximately less than 100 pixels. But we can multiply by any number…
How to make an HTML5 Note Taking Program
HTML5 is amazing to me it and I have fun to do coding with JavaScript because it runs on web browser just like that, so we don’t have to install anything, its just running on web browser. In this tutorial I will share with you how to create a web program, this time, a note…
Adding html file inside assets folder (Creating HTML5 Android WebApp)
Now we are ready to add our html file inside assets folder. Create a folder named assets and put your html file there. Then build the app. You will see your app is running displaying that html page. This code is for html sample page used in this tutorial:
Edit the MainActivity.java file (Creating HTML5 Android WebApp)
The next step is to edit MainActivity.java file. Copy and paste this code to your MainActivity, but remember keep your package name unchanged, my package name is “com.thirteenov.lightweightnotetaker” so you must your own package name as it is your unique app identifier.
Adding the WebView to activity_main.xml in Android Studio (Creating HTML5 Android WebApp)
The next step is to add WebView to your layout file in Android Studio. Delete everything in your layout before adding WebView. Then after you drag and drop the WebView, you need to make it full screen. Make sure you set the constraint correctly and set the layout-width and layout-height to match constraint. Give it…
Creating New Android Project (Creating HTML5 Android WebApp)
As usual, to create a new project of anything, in this case Android project, we just need to follow the dialog wizard. I named this project LightWeight NoteTaker, a light weight html5 note taking app. The package name of this app is “com.thirteenov.lightweightnotetaker” . So basically we need that package name as a unique identifier…
Let’s create an HTML5 based Android web app
Hi, I’m going to start creating an HTML5 based Android web app. I’ve just Installed Android Studio and it’s getting ready now (it’s currently downloading some updates before I can use it). So basically, the idea behind creating Android WebApp is to have a WebView in the app and we create everything (the content) inside…
Improved MyRotationTouchpad Script for Unity3D (Vertical and Horizontal)
Previously I’ve shared a script with you I called “MyRotationTouchpad”. But I was thinking I need to improve it. So here it is, newer updated script. What I improved in this script is: You can rotate objects horizontally and also vertically. This is the script: