Steam has had XML output on profiles, games and groups for a while so I thought I would post up one of my old classes for retrieving Steam user data. The class below will download the XML for games and a user profile(s) and return back an array to work with.
AES Encryption is now an easy way of securing your data with a secret key thanks to the MCrypt PHP extension. You can read documentation and basic examples on using MCrypt on the PHP.net page. Below is a small class I have put together to take advantage of encrypting/decrypting data and returning it in a Base64 format so it can be stored safely in a database.
Another TinyMVC plugin; this time to get and set session variables from within your controllers. Utilising PHP5’s magic functions to add and remove entries from the $_SESSION global, quickly and easily. Drop the following code into your plug-ins directory and load it up.
Back again with more TinyMVC code. As I get more into this framework the more code I’ll be posting up, the functions in the code below are to be used directly from TinyMVC views and not controllers or models.
One of the most useful features below is block($view) allowing you to directly output other views, inside your view (like CakePHP does) although this is technically not following “strict” MVC guidelines it is still a very useful feature.
TinyMVC provides a great structure for developing new projects, it’s small base allows the developer to write new plug-ins and extend on the existing framework. Below you’ll find a template wrapper I have made to manage the views and assigning of data. The class allows you to set a default view to be used in order to keep consistency throughout; so that you can minimize view code in the controllers.
Below is a small tutorial showing you how to create a new Android Activity and Switch to it whenever needed as well as passing information between them, basically, this will allow you to switch to a new interface such as an options page for example, when required.
One of the most used features on the Android platform is being able to save and fetch your data from some sort of database, Android comes packaged with libraries to manage SQLite Databases. I have written a helper class to get you started using it, there are also examples showing how to read and write to the database using SQL and in-built methods.
After playing around with Android (and I’ve spent only around 2 hours so far) I found out that it’s quite easy to access the System Notifications and send messages from your own Activity along with the custom titles, content and icons which will appear in the system tray of Android – This should work on all versions of Android, although it’s only tested on 3.0+.