Showing posts with label Galaxy Nexus. Show all posts
Showing posts with label Galaxy 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, September 26, 2012

Goodbye Galaxy Nexus, Hello iPhone 5


Goodbye Galaxy Nexus, Hello iPhone 5.


I'm about to retire my GNexus to secondary status and I'm glad to.
The phone has been a terrible mess from day one. I was mistaken to believe a "Nexus"  product would get updates and fixes but Verizon pretty much screwed the whole thing up from day one.

I got  the official Jelly Bean the other day and it hasn't fix anything. I still get 3-4 hour battery life and most of the core apps don't work for me. I know this is Verizon's fault because I've played with other VZW Nexus phones with rooted ROMS and they perform much better than stock VZW. Jelly Bean still lags on Verizon GNEX phones. The camera app on Jelly Bean on VZW is atrocious compared to other GNEX phones with different roms.

Unfortunately, as a manager, I need to set a good example and I simply just can't root and experiment with an employer issued phone.

I'm back with the iPhone and I'm happy. I love the great apps that help me get my work done. iSSH, Screens (VNC/Apple Remote Desktop), Texstatic, various superior MySQL clients, and  X11 apps.
PUSH IMAP w/ IDLE works  with Cyrus/PostFix/Dovecot mail servers along with MD5-CRAM SSL authentication works on the iPhone. I don't use GMAIL so I need to make sure my PUSH emails from Nagios is working 100%. CalDAV with PUSH notifications and event .ics calendars work out of the box with iOS. More importantly, Cisco VPN w/ Group Authentication works since day one. Google still hasn't really figured out how to fix this and a smartphone is useless to me if I can't VPN/SSH into my work.

Lastly, the most important thing is MTP. MTP works  5% of the time. 95% of the time is is pure frustration. The GNEX has been a pain to transfer files. I've been using webdav, samba, ftp to get files into my Nexus. MTP client on Mountain Lion broke in 10.8.1. I can't get MTP working reliably with Ubuntu 12.04, CentOS or Linux Mint. I'll get it working but something will break it like an update to GMTP or Fuse. PPTP is really slow and web/ftp/sftp isn't going to cut it. I've tried various PPAs, FSTAB, manually mounting and it will work for a bit and then drop. When I plug in my Galaxy Tablet, it goes kaput again. Even when it does work, it never worked reliably. Files take forever to transfer and often get corrupted.

iOS 6 and the iPhone 5 mounts on Linux with no hassle. In fact, with a clean install of Linux Mint 13, I didn't have to do anything but plug in the cable. The App folders mounted and I could copy my files. I transferred about 20GB of MKV, WMV videos to the various video player apps I have. Large PDFs (120-300MB) and 60MB Excel files transfer without a hiccup. As you can see below, Linux Mint has no problems mounting an iPhone 5.



Lot of Android fans will tell you they will deal with all these frustrations because of the customization and flexibility of Android. I don't change home launchers, add widgets, apply different skins on my phones. Both my phones, I can play MKV and different video codecs, mount network volumes, run emulators and do pretty much the same thing. I do like the fact you can completely swap out a ROM distros. There are also some killer applications on Android that I like like Torque (iOS equivalent is pretty pricey). You can also run chroot Linux but I have never been a fan of the implementation on Android.

I have a different set of needs in terms of customization. For me, customization is the ability to install a great app like Vmware Vsphere client to manage my ESXI server. Customization is the ability to pull a sd card from my new Olympus OM-D micro 4/3 camera and edit 1080p video of my vacation. iMovie is truly amazing and has changed how I edit my home videos. I no longer need to use Final Cut for simple things like a picnic or music recital. Customization is also the ability to sort out my pictures in my picture album without manually renaming my jpegs 1.jpg,2.jpg,3.jpg just to have them display in a certain order. It is the little things I appreciate. There is still no peer to the iPod player on the iPhone.


The iPhone 5 is really fast. At work, we are developing a spreadsheet HTML5 web application that is javascript/ajax heavy and the iPhone 5 loads up the application with no problem.
The various Android devices we have have been choking on these pages (200 plus divs with over 100 concurrent ajax calls).  The benchmarks (Anandtech) have shown iOS6 and the A6 SoC has a super fast Javascript engine. I'm surprised because Google's V8 has always been better than Apple's Nitro Javascript engine.

The GNEX still has a better screen but the apps I've used haven't taken advantage of it. I don't watch movies or surf the web on my phones so the larger screen is lost on me. I do, however, run a lot of terminal connections and I still prefer apps like iSSH over Connectbot. iSSH has transparent keys, touch sensitive gestures to pull up control and function keys. This level of usability even on a smaller display trumps the larger 4.65" screen.

I won't be ditching Android. I'll see if I can lemon my Nexus for S3. But for now, I am loving the iPhone 5.



Thursday, July 19, 2012

Transform the Galaxy Nexus into a desktop computer

With a simple adapter and bluetooth, you can convert a Samsung Galaxy Nexus into a full desktop computer.


You will need a micro USB  to MH/HDMI adapter, a HDMI compatible monitor, and a set of bluetooth keyboard and bluetooth mouse. I use the Apple keyboard and bluetooth mouse.


This will basically mirror everything you see on the phone to the monitor. If you don't have an HDMI monitor, you can use a HDMI to DVI adapter like the one I use on this 24" Samsung.



The screen res will be what is on the phone, 1280x720. Some apps don't work quite right due to the fact they require or shift from landscape to portrait mode. For example, pulling up Netflix's movie browser looks like this:




Overall, it is a silly demo to show off your friends and colleagues. Running ICS on a large monitor is not really that intuitive  when you consider the oversized icons and UI elements designed for a 4.65" phone. The phone should have outputted a 1920x1080 display which would have been my preference.
Now, if this could dual boot into something like Ubuntu, then I can see the value of it. The original Atrix and their webtop was a very promising idea in 2011. Since, it the concept and execution has sort of fizzled into obscurity.

One last note, the MHL adapter requires power. You will need to use the existing micro-usb power adapter to power it. This sorts of kills the whole idea of using the Galaxy Nexus as a portable presentation machine. In comparison, the iPhone 4S and iPad 2/3 can be docked with a 30pin-HDMI adapter and run on battery alone.






LINK for MHL adapter: http://www.amazon.com/Menotek-Adapter-IMPROVED-Protocol-Sensation/dp/B005F9W6DU/ref=sr_1_3?ie=UTF8&qid=1342718283&sr=8-3&keywords=MHL+adapter+nexus

Sunday, June 3, 2012

Multi-Monitor on the Galaxy Tab 2 and Galaxy Nexus

In my first multi-monitor display post, I wrote about using the Retina iPad 3 as a high-res portable multi-monitor display for a laptop.  Today, I am going to show you the same software running on Android's Ice Cream Sandwich with the wonderful Samsung's Galaxy Tab 2 7.0" Android tablet. It also works with other Android devices such as the Nexus.

Avatron makes the same Air Display available for Android on the Google's Play Store. I was looking for something similar to my iOS and I hit jackpot. The desktop client is the same and the app works and feels like the iOS counterpart. The client app works on both Windows and Mac OSX.  Below are screenshots of it running in Mac OSX.

Set up is the same as before. You select your device (s) and adjust your secondary display arrangement.


The Air Display Galaxy Tab 2 is the bottom one of the right. I love running multi monitor displays on my macbook!


And voila. Wi-Fi palette monitor; using the Galaxy Tab 2 as a secondary portable monitor. You can use the touch-screen as a virtual mouse as well.



And here it is on a 4.65" Galaxy Nexus. As you can see, the soft keys take up quite a bit of space. A 4.65" screen is cutting it close to be useable. 

A few things to note. With Ice-Cream Sandwich, you don't get the full screen. The virtual soft keys (home/back/menu) and task bar still exists. Hence, you lose some resolution compared to an iOS device.

1024x600 on the Galaxy Nexus
1024x540 on the Galaxy Tab 2
2048x1536 on the iPad 3 in Retina mode. (1024x768 other mode).

The only missing feature from the iOS version is virtual keyboard. Both have virtual mouses but with the iPad, you can pull up the tablet's keyboard to enter text or type within apps inside your Air Display monitor.

Next, the other issue is the inability to power multiple "Air Display" devices; meaning I am unable to use all my devices as 4th or 5th monitors at the same time.
I have some DisplayLink usb powered monitors and I can daisy chain up to 6 DisplayLink monitors to my MacBookPro. It would be nice to have a similar feature with Air Display.

Lastly, the refresh is rather laggy and slow. This is expected since the redraw is taking place over WIFI. The speed of your refresh depends on the speed of your WIFi network and your devices. Both my Samsung devices, in general, have poor WIFI connections. This doesn't bother me because I use these monitors as palette displays to show non-motion material. I use them mostly for displaying error logs, mail, and terminal windows which do not need fast refresh.  Depending on your use case, this may not be ideal for you. Considering that the application cost $5, the investment is low compared to buying and lugging extra monitors around.

And a word of advice. If you ever plan to use a WIFI monitor or even some sort of Remote Desktop (VNC/RDP/X11), always choose a solid color like dark grey for your background. It makes it easier on the refresh and redrawing.


Link: Air Display at Google's Play Store



Sunday, May 27, 2012

Ubuntu 12.04

I finally made the switch to Ubuntu 12.04 from 10.0.4 on my personal machines. As for my professional needs, I am still using CentOS. For the past year, I avoided upgrading Ubuntu since they switched to Unity (aka Netbook Remix version 3).

However, as many of Linux users with a Galaxy Nexus know, MTP (Multimedia Transfer Protocol) does not play nice with Linux. In short, I can't connect my phone and transfer files from my Linux box.
ICS (Ice Cream Sandwich) MTP usb access was one of the rumored things about 12.04. This and this alone was the reason for me to cast my doubts on the new release of Ubuntu. So, I took the plunge and updated a few machines to 12.04.

Well, that didn't turn out to good either. You still have to muck around with Fuse, MTPFS, and play around with fstab entries. Not my idea of intuitive or fun. The MTP issue extends to other devices like the new Galaxy Tab 2. Don't get me wrong, I could 3 out 20 times get my phone to mount and maybe 1 out of 30 times have a non dropped connection during copies.

There were also rumours of exFAT support for cross-platform filesystem sharing. Again, that didn't turn out to be true either.

Still, I made the plunge and changed. I'm still not a fan of Unity so I run Ubuntu in classic GNOME mode.

Besides running classic GNOME, there are few things that are cool.  There is reliable CISCO ipsec and openvpn support. I no longer get dropped connections and could reliably be connected for 12 plus hours.

Another surprising thing for me was better iOS support. Even with iOS 5.1, Ubuntu 12.04 is able to allow me to mount and copy files to an iPad. I can copy movies and spreadsheets into my iPad 3 via drag-n-drop. Again, very surprising that Ubuntu has better iOS support than Ice Cream Sandwich. You figure that Android is Linux, it should play nice with other Linux devices.

Screen grabs are proof enough below.


Copying pdfs  is 10 times easier  to the iPad than to my Samsung Galaxy devices.


As you can see here, MTP File access is still problematic. In 2012, people shouldn't have to terminal detect USB devices, write fstab entries and manually mount devices in the console.


Other things I like are:
Airprint built in. I can print from my iPad using the UBUNTU as a host print Airprint server. This is default in the CUPS setup.

I dig the wanna-be OSX Time Machine style backup. I like the fact I can SFTP into a remote server and it backs up my files


Now, there are some problems that I haven't been able to sort out yet.  I was not able to install 12.04 of some older Dell PowerEdge 2850/2950 rack servers. I'm not alone.  Fellow co-wokers could not get it to install. I did not find a JEOS or shell only install options. The CD/USB took me straight to live session. I suppose there may be some special keyboard shortcut at boot or somethng else trivial but I never pursued it. 10.04 LTS will stick on my servers along with CentOS for the time being.

Overall, I am pleasantly surprise and not quite ready to write-off Ubuntu.

Thursday, May 24, 2012

Icade. Awesome retro goodness for iOS and Android


I got this last Christmas and I am still digging it. This nifty cabinet brings back wonderful 80s retro-style nostalgia. Designed for iPad, it also works for Android devices. You can get it from ThinkGeek.

Here is is with a Galaxy Nexus.







And a $99 HP Touchpad running CM7 (also works with ICS). Street Fighter!




Many iOS games need to be designed for the ION icade controller. I have a couple of favorites including AirAttack HD and Atari Greatest Hits.

However, the most important game is iMame4all (http://code.google.com/p/imame4all/)
Imame4all for both iOS and Android support the icade. The controls work off simple bluetooth. It takes regular AA batteries and it runs for months.

Dig Dug, Defender, Missile Command, Frogger, Street Fighters. Yes, this brings back a lot of great childhood memories.

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