Showing posts with label Nexus. Show all posts
Showing posts with label Nexus. Show all posts

Thursday, January 10, 2013

PHP 5, MySQL web server on Android

Want to run a web app server on your smartphone or tablet? Specifically, run a full fledge PHP-MySQL Web Server straight from your Android device.



Well, there are a few pre-built apps on the Google App Store. In the past, there were a few lightweight HTTP servers running customize apps like AirDroid or PAW. These new ones have full PHP and MySQL run-times.

I tried a few and settled with Bit Web Server. I also tried KSWEB.

Bit WebServer also comes with PHPMyAdmin (PMA) installed and you are ready to go.
You can install Drupal and Wordpress as well. I got Code Igniter running without any problems.





A few notes. These apps tend to be a bit buggy. They can force-quit or hang under load. I can't really blame them as the fault may be with Android OS itself or the hardware I am running. I've tried them with the Galaxy Nexus and a Samsung Galaxy Tab 2. I've been reading that the OS (Jelly Bean and ICS) may starve the apps due to power savings and other reasons such as auto close.

I can't really complain though. I'm not running anything mission critical. If the app crashes, I simply restart it. It comes in handy show off web apps.

Moreover, it runs LIGHTTPD instead of Apache so PHP run as a CGI.

The apps range from 2ドル to 3ドル. Yeah, you're paying for open source software and may have an issue with it. However, think about the time you are saving without having to resort to building PHP/MySQL from scratch and make it work on your phone. I have no problem with the pricing.

Just add a keyboard and you are ready to go!





Links:

Bit Web Server
KSWEB.

Monday, October 29, 2012

Nexus 4 thoughts


The Nexus 4 was announced today. I went over and looked to see if it was a worthwhile upgrade from my Verizon Galaxy Nexus (I carry two phones).

Looks like it has some great specs and the off-contract is killer. Unfortunately, there are two glaring problems:

1) NO LTE / No CDMA
2) 16GB Max storage.

The Galaxy Nexus is my work phone on Verizon. There would be no way my employer would let me switch. No LTE in 2012 on a flagship device is ridiculous. I have LTE on all my devices: Galaxy Nexus, iPhone 5, iPad 3, and my Mi-Fi. There is no way I am going back. HSPA excuses are lame and I can't believe people are justifying it online.

The storage limitation is also whack. The argument is everything should be in the cloud.
Well, I do store all my music in the cloud. I use both Google Music and Apple's iTunes Match. I have about 400GB worth of music on iTunes and probably 20GB on Google's music service.

16GB is simply not enough. Look at my current usage below. On a 32GB Nexus, I only have 3.3 left. I have already gone past the 16GB marker. On my iPhone, I am using close to 40GB with no music files on it at all. The majority of my use are photos/home videos and PDFs. I am a father and take lots of photos. I tend to keep photos/videos on my devices because I tend to edit them later on.

The new Nexus 4 is a non-starter for me. I think there are many who would probably agree with me. The Nexus 4 is definitely not a 2012 flagship device.

Screenshot of my typical usage.






Wednesday, May 23, 2012

Adventures in USB OTG



One of the greatest feature of “certain” Android devices is the ability to connect to USB devices via OTG (On-the-Go). Your phone or tablet is no longer the device but the host. You have the ability to connect USB drives as mass storage or the ability to plug in a mouse or keyboard.

For me, the coolest thing is the ability to use a phone or tablet as a vt100/hyperterminal/minicom terminal. For years, in data centers, I used a IBM Workpad Z50 (Windows CE) or a Windows laptop running hyperterm to connect to switches, routers, firewalls, UPS and the likes.






For less than 2ドル (Amazon Link )
you can get an OTG cable to work with your Android device.

I was able to successfully connect a Galaxy Nexus and a Galaxy Tab 2 7” (using a different 30-pin to OTG cable) to various switches and firewalls.

That was a geek epiphany moment
Subscribe to: Comments (Atom)

AltStyle によって変換されたページ (->オリジナル) /