When you run your web app in Chromebox, you cannot call out the DevTools to check the error in console or inspect elements. Instead, there is another way to do so. Firstly, do not run web app in kiosk mode, and quit fullscreen mode. Open Chrome browser, in address bar, type: chrome://inspect On left menu, […]
Author Archives: luar
Solve React Native custom shell script stuck for long time in Xcode
Disclaimer, I develop React Native app in Windows platform and Android version first. For iOS version, compile in Xcode is my last process for testing or deploy. So the following tip may not suitable for your case. Each time, when build React Native app in Xcode, no matter it is build for simulator or device, […]
Config Raspberry Pi for auto-login, disable Alt+F4, Ctrl+Alt+Del keys, auto-run python code
Just finished the first job on Raspberry Pi, using python code as a kiosk program, some common config you may needed: My Raspberry Pi is running with RASPBIAN Debian Wheezy Auto-login After boot up the Raspbian, if you want to auto-login with username: pi, password: raspberry. sudo nano /etc/inittab find: 1:2345:respawn:/sbin/getty –noclear 38400 tty1 change […]
BitmapData QRCode Scanner
I found either free or commercial QRCode reader/decoder Flash AIR Native Extension launch a fullscreen Camera to scan, it cannot customize the UI or adding overlay image. I wrote this ANE which accept BitmapData to decoder. So you design own scanner UI and the decoding speed in much faster than any pure AS3 QR decoder. […]
First Try on Erlyvideo
Erlyvideo is another free/commercial Flash Media Server alternative, I notice it because it claimed it can streaming video to iPhone. I am looking for a solution directly streaming flv to iPhone for a long time, but still cannot find any. Movie file location setting Edit erlyvideo/priv/erlyvideo.conf, parameter: file_dir iPhone streaming path http://www.<domain>.com:8082/iphone/playlists/<folder>/<folder>/<filename.ext>.m3u8 Testing result: mp4, […]
Multiple Player / Real Time Data Push Solution for iPhone
Reference Article stackoverflow: Multi-player server for iPhone application, using device as socket server. stackoverflow: COMET (server push to client) on iPhone Free (with iPhone API / SDK) RedDwarf Server (Yes) Stomp (Yes) WebChat 2.0 (No) Commercial (with iPhone API / SDK) StreamHub (No, Web App) SmartFoxServer Pro (Yes) Exit Games Photon (Yes)
Abbreviate TextField Characters According to Rows Count
Before AS3, we can only use substr to abbreviate string characters number for TextField, but we have to guess a extract number to fit our UI design, e.g. only show two lines, we have to guess in this font size, font face, what is maximum numbers of character can be shown. It is a problem […]
Flash Player 10.1, Client-side Microphone Recording Demo
Thanks Flash Player 10.1, now we can record the sound through microphone directly in browser without the use of Flash Media Server, you can download the wav file converted from ByteArray immediately, you can download mp3 which I send wav file to server and using LAME to encode as mp3. Hope AS3 mp3encoder can come […]
PHP in Windows, under IIS and Apache, file path is handled differently
PHP in Windows, under IIS and Apache, file path is handled differently, for example: Under IIS: C:\Projects\test.php Under Apache: C:/Projects/test.php So if you want based on “/” to do something like RegEx, remember convert Windows style file path to Unix style, e.g:
Trouble with Hotlink Protection and HTTP Referer in Different Browsers
To save bandwidth, most of servers will practice some hotlink protection, usually using either following script to check whether the HTTP referer is come from the same server, most script are focus on image file, but it can slightly modified for FLV protection. There are two common methods to do that: Edit in .htaccess RewriteCond […]