Ionic Framework Upload Ionic App

Uploading Ionic Apps to use with Ionic View App

I’ve tried to build some test Android apps using the Ionic. And by enabling install from other sources than Play Store, virtually anybody could install and test my app provided one has an Android device. Sending Dropbox link to a friend with Android device is a hassle-free process.

But what about iOS friends?

Continue reading “Uploading Ionic Apps to use with Ionic View App”

Building Android Apps Dependencies [needs revision]

Some errors I came accross when trying out to build Ionic Android app following getting started tutorial.

I’m writing it 1 day later therefor it might not be all correct, but still might give a hint what to do for others (and future me).

Continue reading “Building Android Apps Dependencies [needs revision]”

Bootstrapping Fast Asynchronous Websites for 14 kB Roundtrip

Basically the point is to serve as much of the page content in the first 14kB roundtrip. It’s done by inlining critical CSS and JS (I think even adding lazy loading script, polyfils, etc. can be critical JS) into the HTML.

But you want to use best-practice:

Continue reading “Bootstrapping Fast Asynchronous Websites for 14 kB Roundtrip”
Lightning Fast Websites

Blazing Fast Websites by Lazy Loading Content with AJAX

This is somewhat continuation of an Angular.JS templates related article.

I am not so keen of keeping two codebases for the same purpose, but I am experimenting with a new approach, where server renders the simple document using the same data, including the web-app script and serves the same data in AJAX requests of the provided web-app.

Continue reading “Blazing Fast Websites by Lazy Loading Content with AJAX”
Content-Type & Accept

Ingored Content-Type and Accept HTTP Headers

Only a while ago I’ve started to embrace the HTTP concepts, shortly after trying to build a simple REST engine. Not RESTfull, that would another story.

Most of CMSes, websites, well actually in general we, their authors, developers, simply ignore requests of the application requesting data. They provide always unified response as HTML. Even when implementing AJAX service, the requested accept format of the client application (not a browser) is ignored and is being served JSON on each response.

Let’s not forget: Web browsers are applications able to run applications within themselves – we are used to call them web apps. They can define Accept header different from the browser application. The web app might be written by you, but it might as well be written by other developer later.

There should be no assumption on the best communication format. JSON might be cool and speedy right now, but even now there are other compressed incompatible formats.

That’s why I believe the response of the server should be handled by injectable handler according to Accept header. Writing such handler would allow future extension yet provide clear application responsibilities separation e.g. as a module.

Bubbling return values in PHP

I got this crazy idea few years ago while building a REST service for one of my projects. I needed some way to represent complex errors happening deep down in the components of the service to the public.

I ended up returning arrays with multiple keys which was really not ideal.

Continue reading “Bubbling return values in PHP”
OS X Yosemite Splash

Installing Yosemite (or any other) OS X as secondary OS

Just as I’m writing this post, my disk is shrinking once again. Last time it was because of me installing Lion1. First I wanted to use Virtual Box to run it within a virtual machine. After I tried several option to boot install I finally gave it up. My last hope to install Lion was by load (restore) contents of the DMG hidden in the OS X Install app downloaded from Apple Store into a real partition and install.

I was successfull with Lion. This time I’ll keep journal and I try to install Yosemite.

Continue reading “Installing Yosemite (or any other) OS X as secondary OS”

Running Android Simulator (AVD) on Desktop [Mac]

Testing and debugging app or website on a real device is always a win. Most of the times, we are lucky to test on some of the friends devices. That’s when running an AVD — Android Virtual Device is much help and is better than nothing. Hence process is not so straightforward this post was born.

Continue reading “Running Android Simulator (AVD) on Desktop [Mac]”

The (Fullscreen) Web App Markup with Status Bar Offset [iOS]

This article is unfinished work-in-progress and will probably change in the near future. If you find topic interesting, you can suggest changes by leaving a comment bellow.

In part 1, we’ve tackled down some of the culprits of positioning fixed header and footer elements. This is part 2 of series how to build a web-app ready boilerplate for a website where we’ll prepare a container for the website’s header, footer and content, which is pretty common.

Since this setup culd be pretty common, I am setting a GitHub Repository to maintain most of the code. The repository will be also compatible with the Publisher view.

Continue reading “The (Fullscreen) Web App Markup with Status Bar Offset [iOS]”