This time, I played a little with Threads and I tried to implement somekind of simple-test separate thread and start it inside main activity and also return results from separate Thread so it can be used to update UI for example.Read more
Let’s play a little with BroadcastReceiver: we will try to send a message from Android service we made to Activity and log that message.
Let’s use our Android service tutorial project from one of my earlier articles.
First of all we need to define private variable in our Activity:Read more
Sometimes we need to define global variables accesible from inside our android application to hold some shared values.
Simplest way to implement this is to subclass Android.app.Application class and define static variables that will hold our data.
When you look at my posts on this blog, you will, besides few posts about WordPress and Zend find most articles about Symfony2 development.
Well, now things are about to change slightly.
When developing web services for mobile devices to handle user log-in, I had to make it persistent somehow, so the user should not log-in each time when starts mobile application, but I rather wanted log in to be permanent somehow while user does not log-out manually.Read more
Sometimes, when we have some relatively complex queries to write, it’s so long and inflexible statement that it’s pretty hard to understand few days after we wrote it, or we have to add some dynamic parameters or conditions that writing plain DBAL statement could be real nightmare …Read more
Few days ago I had to use DBAL statement that will execute SQL IN(somearray) statement.
Considering that I used Doctrine DBAL in this part of code, I had to find the proper way of doing it.
I wrote some basic things about using Doctrine DBAL inside Symfony2 project, but I didn’t ever need this one before until now …
Considering that I have never been real Linux user before, there was few things that I had to learn to successfully handle my code on server through SSH.
One of these things is forcing php CLI to use my custom php.ini file on server.
Let me start this story from beginning …Read more
There are many options developer can use for speeding up web application. But you already knew that…
Let’s skip long introduction and show by example:
Symfony2 support several caching systems and one of them is APC cache.
This article is going to be short …. but, everything in Symfony2 is so developer friendly that do not require some huge knowledge to accomplish …Read more
Sometimes we need to add some static configuration options inside our project that will be accessible from whole project scope.Read more
Except well documented TWIG functions like: path(), asset(), … and custom variables you pass into view from controller when rendering some TWIG template, Symfony2 provides an easy way to access some ‘global’ variables inside TWIG templates without explicitly sending those to the view from controller.Read more
Idea is to create one page which will be ready for mobile devices and serve like mobile app. We will use google ajax search API and jQuery to enhance experience. Also we will have script which will notice visitors how to add shorcut for iOs devices and use search like standalone app.Read more
Lots of posts are written on forcing HTTPS on routes, but I didn’t find one that is suitable for my Symfony2 installation, so I tried to write combination that will work for my project.Read more
Few days ago I played with my Symfony2 project and tried to implement chunked transfer of data to the browser / web service client.
So, what is chunked transfer encoding anyway?Read more